@charset "UTF-8";
/* Původní _default.css (dříve přes @import) */
@import url("quiz.css");
@import url(https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&display=swap);
a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  outline: 0 none;
}

a:hover {
  text-decoration: none;
  cursor: pointer;
}

header .logo {
  display: block;
  float: left;
  padding: 5px 10px;
}

::-moz-selection {
  color: #000;
  background: #FFEE01;
}

::selection {
  color: #000;
  background: #FFEE01;
}

header a:hover {
  background-color: rgba(255, 235, 120, 0.25);
  color: rgba(0, 0, 0, 0.75);
}

.user-item img,
.user-avatar {
  border-radius: 50%;
  display: block;
  width: 44px;
  height: 44px;
}

.top-games-panel {
  float: left;
  display: block;
}

.top-games-panel a {
  border-right: 1px solid rgba(59, 89, 152, 0.25);
  display: block;
  float: left;
  text-transform: uppercase;
  padding: 15px 20px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
}

.top-user {
  float: left;
  display: block;
}

.top-user a {
  font-size: 35px;
  color: silver;
  padding: 3px 10px !important;
  display: block;
  height: 50px;
}

header .logo img {
  height: 40px;
}

header h3 {
  line-height: 40px;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 19px;
}

footer {
  color: #777;
  font-size: 12px;
  margin-top: 10px;
}
footer .wrapper {
  padding-top: 19px;
}

.versus {
  display: block;
  font-size: 40px;
}

.wrapper {
  margin: 0 auto;
  max-width: 1140px;
}

.vazba-0,
.vazba-1,
.vazba-2,
.vazba-3,
.vazba-4,
.vazba-5,
.vazba-6,
.vazba-7 {
  background: none no-repeat scroll center center transparent;
  height: 30px;
  left: 0;
  position: absolute;
  top: 0;
  width: 30px;
}

.souper1 .vazba-0 {
  background-image: url("images/red-top.png");
  left: 2px;
}

.souper1 .vazba-1 {
  background-image: url("images/red-right-top.png");
  left: 2px;
  top: -2px;
}

.souper1 .vazba-2 {
  background-image: url("images/red-right.png");
}

.souper1 .vazba-3 {
  background-image: url("images/red-right-bottom.png");
  left: 2px;
  top: 2px;
}

.souper1 .vazba-4 {
  background-image: url("images/red-bottom.png");
  left: 2px;
}

.souper1 .vazba-5 {
  background-image: url("images/red-left-bottom.png");
  left: -2px;
  top: 2px;
}

.souper1 .vazba-6 {
  background-image: url("images/red-left.png");
}

.souper1 .vazba-7 {
  background-image: url("images/red-left-top.png");
  left: -3px;
  top: -2px;
}

.souper2 .vazba-0 {
  background-image: url("images/blue-top.png");
  left: 2px;
}

.souper2 .vazba-1 {
  background-image: url("images/blue-right-top.png");
  left: 2px;
  top: -2px;
}

.souper2 .vazba-2 {
  background-image: url("images/blue-right.png");
}

.souper2 .vazba-3 {
  background-image: url("images/blue-right-bottom.png");
  left: 2px;
  top: 2px;
}

.souper2 .vazba-4 {
  background-image: url("images/blue-bottom.png");
  left: 2px;
}

.souper2 .vazba-5 {
  background-image: url("images/blue-left-bottom.png");
  left: -2px;
  top: 2px;
}

.souper2 .vazba-6 {
  background-image: url("images/blue-left.png");
}

.souper2 .vazba-7 {
  background-image: url("images/blue-left-top.png");
  left: -3px;
  top: -2px;
}

table {
  width: 100%;
  text-align: center;
}

table .cell {
  display: inline;
}

li .cell {
  display: inline;
}

table .cell span,
li .cell span {
  border-radius: 12px;
  display: block;
  height: 24px;
  margin: 0 auto;
  text-align: center;
  width: 24px;
}

li .cell span {
  display: inline-block;
}

#content-hra {
  margin: 0 auto;
  position: relative;
  width: 900px;
}

#bg {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
  border-radius: 15px;
  display: none;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 9;
}

.souper1 span {
  background-color: #CC0000;
}

.souper1 span {
  background: #ff3019;
  /* Old browsers */
  background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff3019), color-stop(100%, #cf0404));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #ff3019 0%, #cf0404 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #ff3019 0%, #cf0404 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #ff3019 0%, #cf0404 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff3019", endColorstr="#cf0404", GradientType=0);
  /* IE6-9 */
  box-shadow: 0 0 5px 0 #b9b9b9;
}

table .souper1 {
  color: #cc0000;
  font-size: 120%;
  font-weight: bold;
}

table .souper2 {
  color: #003399;
  font-size: 120%;
  font-weight: bold;
}

.souper2 span {
  background-color: #003399;
  background: #2c539e;
  /* Old browsers */
  background: -moz-linear-gradient(top, #2c539e 0%, #2c539e 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2c539e), color-stop(100%, #2c539e));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #2c539e 0%, #2c539e 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #2c539e 0%, #2c539e 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #2c539e 0%, #2c539e 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #2c539e 0%, #2c539e 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2c539e", endColorstr="#2c539e", GradientType=0);
  /* IE6-9 */
  box-shadow: 0 0 5px 0 #b9b9b9;
}

#platno .stav-31,
#platno .stav-32 {
  background-image: none;
}

h1 {
  margin: 0;
  text-align: center;
}

.game-list {
  list-style: none outside none;
  margin: 0;
  padding: 0;
}

.game-list li {
  height: 30px;
  line-height: 30px;
  text-align: center;
  vertical-align: middle;
}

#msg {
  text-align: center;
}

#platno .last {
  background-color: chartreuse;
  border-radius: 15px;
}

.stav-32 span {
  background-color: #993333;
  background-color: #FF99FF;
  background: #febbbb;
  /* Old browsers */
  background: -moz-linear-gradient(top, #febbbb 0%, #fe9090 45%, #ff5c5c 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #febbbb), color-stop(45%, #fe9090), color-stop(100%, #ff5c5c));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #febbbb 0%, #fe9090 45%, #ff5c5c 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #febbbb 0%, #fe9090 45%, #ff5c5c 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #febbbb 0%, #fe9090 45%, #ff5c5c 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #febbbb 0%, #fe9090 45%, #ff5c5c 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#febbbb", endColorstr="#ff5c5c", GradientType=0);
  /* IE6-9 */
}

.stav-31 span {
  background-color: #6699FF;
  background: #b2e1ff;
  /* Old browsers */
  background: -moz-linear-gradient(top, #b2e1ff 0%, #66b6fc 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b2e1ff), color-stop(100%, #66b6fc));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #b2e1ff 0%, #66b6fc 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #b2e1ff 0%, #66b6fc 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #b2e1ff 0%, #66b6fc 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #b2e1ff 0%, #66b6fc 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#b2e1ff", endColorstr="#66b6fc", GradientType=0);
  /* IE6-9 */
}

.ready .barva1 .stav-0:hover span {
  background-color: #990000;
  cursor: pointer;
}

.ready .barva2 .stav-0:hover span {
  background-color: #3333FF;
  cursor: pointer;
}

/***/
.jumbotron {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: #e5e6e9 #dfe0e4 #d0d1d5;
  border-image: none;
  border-radius: 0;
  border-style: solid;
  border-width: 1px;
  box-shadow: 0 0 0 10px #ffffff inset;
  margin: 0 auto;
  /* max-width: 728px;    */
  background-color: #fff;
  z-index: 300;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.15);
  padding: 10px !important;
  max-width: 728px;
}

.jumbotron-in {
  border-radius: 6px;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.quizz-in {
  background: rgb(255, 235, 120);
}

.game-preview {
  background: url("images/slepicky2.png") repeat scroll 0 0 transparent;
  width: 450px;
  height: 452px;
  margin: 0 auto;
}

.me {
  padding: 10px 0 25px 0;
}

.me_profile {
  width: 15%;
}

.me_profile_img {
  width: 100%;
  float: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.me_right {
  margin: 0 0 0 25px;
  float: left;
  font-size: 32px;
}

.me_name {
  display: block;
  font-weight: bold;
}

.me_social {
  padding: 5px 0 0 0;
}

.me_logout_icon {
  opacity: 0.4;
  margin: 0 0 0 8px;
}

.me_social_a {
  margin: 0 15px 0 0;
  opacity: 0.85;
}

.menu {
  padding: 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.menu_a {
  float: left;
  display: block;
  padding: 10px 15px;
  margin: 0 5px -1px 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 0px;
  background-color: rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  font-size: 20px;
}

.ma_select,
.ma_select:hover {
  background-color: #FAFAFA;
}

.menu_a span {
  color: #444;
}

.menu_a i {
  color: #3F74FA;
  font-style: normal;
  font-weight: bold;
  margin-left: 10px;
}

.me_logout_icon_img {
  width: 32px;
  vertical-align: -3px;
}

.me_social_a_img {
  width: 36px;
  height: 36px;
}

.v_out {
  margin: 0 -10px 0 -10px;
  padding: 0px 0 25px 0;
}

.vsocial_name {
  display: block;
  text-align: center;
  color: #555;
  padding: 25px 0 0 0;
  font-size: 22px;
  /*  height: 26px;   */
  overflow: hidden;
}

.vsocial_imgs {
  text-align: center;
  padding: 20px 0 0 0;
}

.vsocial_title {
  display: block;
  padding: 15px 20px 0 20px;
  height: 60px;
  overflow: hidden;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.vsocial_data3 {
  background-color: #4076FF;
  color: #FFF;
}

.vsocial_data1,
.vsocial_data2,
.vsocial_data3 {
  display: inline-block;
  margin: 5px 0 24px 0;
  min-width: 100px;
  border-radius: 2px;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 16px;
}

.vsocial_imgs {
  text-align: center;
  padding: 20px 0 0 0;
}

.vsocial_img_icon {
  width: 84px;
  height: 84px;
  vertical-align: 6px;
}

.vsocial_img_profile {
  width: 96px;
  height: 96px;
  border-radius: 200px;
  margin-right: -15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  vertical-align: bottom;
}

/* _default.css je nyní _base.scss */
html,
body {
  height: 100%;
}

body {
  /*	background: none repeat scroll 0 0 #e6eaef !important;*/
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 0;
  padding-top: 0;
  background-color: #FAFAFA;
  background-color: #f8f8f8;
  position: relative;
}

body > #main {
  height: auto;
}

.breadcrumb {
  padding: 8px 15px;
  margin-bottom: 20px;
  list-style: none;
  background-color: #fff;
  border-radius: 0;
  font-size: 12px;
}

img {
  vertical-align: middle;
  max-width: 100%;
}

#main {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
}

.header-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  background-color: #9ac2e1;
  border-top: 1px solid #6F9ABC;
  border-bottom: 3px solid #6F9ABC;
}

.h1,
h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  -webkit-transition: background 0.3s, -webkit-transform 0.3s;
  transition: background 0.3s, -webkit-transform 0.3s;
  -o-transition: transform 0.3s, background 0.3s;
  transition: transform 0.3s, background 0.3s;
  transition: transform 0.3s, background 0.3s, -webkit-transform 0.3s;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  height: 50px;
}

.main-menu .menu-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s, visibility 0s 0.3s;
  -o-transition: opacity 0.3s, visibility 0s 0.3s;
  transition: opacity 0.3s, visibility 0s 0.3s;
  transition-delay: 0s, 0.3s;
  z-index: 1;
}

.m_question_q_btn .btn {
  margin-bottom: 10px;
}

#menu-burger {
  position: absolute;
  top: 0;
  right: 0;
  color: #000;
  z-index: 200;
  padding: 15px;
}

p {
  margin: 0 0 10px;
  padding: 10px;
}

.page-section ul {
  list-style: none;
  padding: 0;
  background-color: #fff;
}

.page-section ul li {
  padding: 0;
  display: block;
  list-style: none;
  border: 1px solid silver;
  margin-top: -1px;
  margin-left: -1px;
}

.page-section ul li a {
  display: block;
  padding: 10px;
}

/* animovany btn*/
.main-menu .icon-bar {
  width: 32px;
  transition: all 0.2s;
  display: block;
  height: 4px;
  border-radius: 1px;
  background-color: #6F9ABC;
}

.main-menu .icon-bar + .icon-bar {
  margin-top: 5px;
}

.navbar-toggle {
  border: none;
  background: transparent !important;
}

.navbar-toggle:hover {
  background: transparent !important;
}

.main-menu.is-active .top-bar {
  transform: rotate(48deg);
  transform-origin: 10% 10%;
}

.main-menu.is-active .middle-bar {
  opacity: 0;
}

.main-menu.is-active .bottom-bar {
  transform: rotate(-48deg);
  transform-origin: 10% 90%;
}

.main-menu .top-bar {
  transform: rotate(0);
}

.main-menu .middle-bar {
  opacity: 1;
}

.main-menu .bottom-bar {
  transform: rotate(0);
}

.nav > li > a:focus,
.nav > li > a:hover,
.nav > li > a.navSelected,
.nav > li > a.navSelected2 {
  text-decoration: none;
  background-color: #6F9ABC;
  color: #fff;
}

.navbar-nav > li > a {
  font-size: 14px;
  color: #222;
  font-weight: normal;
  text-decoration: none;
}

.navbar-nav > li {
  height: 50px;
  display: table-cell;
  border-right: 1px solid #6F9ABC;
}

.navbar-nav > li:first-child,
.navbar-nav > li.first {
  border-left: 1px solid #6F9ABC;
}

.page {
  padding-top: 110px;
  padding-bottom: 80px;
}

footer {
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 80px;
  background-color: #222;
}

.main-menu {
  margin-bottom: 0;
}

.navbar-menu {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3636363636;
  margin-right: 0;
}

.m_questions_list {
  overflow-x: auto;
  overflow-y: hidden;
  height: 50px;
}

.m_questions_list ul {
  white-space: nowrap;
}

.header-test {
  line-height: 50px;
}

@media only screen and (min-width: 1000px) {
  .nav-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 20px;
    padding-bottom: 0;
  }
  #menu-burger,
.menu-bg {
    display: none;
  }
}
@media only screen and (max-width: 999px) {
  .navbar-menu > li {
    float: none;
    display: block;
    border: 0;
  }
  .navbar-nav > li:first-child,
.navbar-nav > li.first {
    border-left: 0 none;
  }
  .page {
    padding-top: 60px;
  }
  .main-menu.is-active .menu-bg {
    opacity: 1;
    visibility: visible;
    -webkit-transition-delay: 0s, 0s;
    -o-transition-delay: 0s, 0s;
    transition-delay: 0s, 0s;
  }
  .navbar-nav > li > a {
    font-size: 19px;
  }
  .main-menu.is-active .nav-wrap {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    -webkit-transition-delay: 0s, 0s;
    -o-transition-delay: 0s, 0s;
    transition-delay: 0s, 0s;
  }
  .nav-wrap {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    background: #fff;
    width: 280px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 100px 20px 70px;
    -webkit-transform: translateX(280px);
    -ms-transform: translateX(280px);
    transform: translateX(280px);
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-;
    z-index: 2;
  }
}
@media only screen and (max-width: 767px) {
  .visible-inline-xs {
    display: inline;
  }
  .progressbar {
    display: block;
    margin-bottom: 5px;
    margin-top: 5px;
  }
  .header-test {
    line-height: 20px;
    padding: 5px 0;
  }
  header {
    position: static;
    height: auto;
  }
  .page {
    padding-top: 10px;
  }
  .breadcrumb {
    display: none;
  }
  .h1,
h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }
}
.m_question_selected .question-mark {
  width: 59px;
  height: 48px;
  background-image: url("images/question-check.png");
  display: block;
  position: absolute;
  left: 7px;
  bottom: -2px;
}

.m_question_q {
  position: relative;
  margin: -1px 0 -1px 0;
  padding: 2px 0;
  display: block;
  border-bottom: 1px solid #808080;
}

.m_question_q:focus,
.m_question_q:hover {
  background-color: #9ac2e1;
}

.mqq_yes,
.mqq_yes:hover,
.mqq_yes:focus {
  background-image: url(images/q_yes.png);
  background-color: #19A94A;
  color: rgb(255, 255, 255);
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.mqq_no,
.mqq_no:hover,
.mqq_no:focus {
  background-image: url(images/q_no.png);
  background-color: #D63A2D;
  color: rgb(255, 255, 255);
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.mqq_yes,
.mqq_yes:hover,
.mqq_no:focus,
.mqq_yes:focus .mqq_no,
.mqq_no:hover,
.mqq_select,
.mqq_select:hover {
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 52px;
}

/*
.m_question_test_result .m_question_q:focus,
.m_question_test_result .m_question_q:hover,
.m_question_test_result .m_question_selected {
        background-color: #9ac2e1;
}    */
.m_question_q p {
  padding-left: 15px;
  display: table-cell;
  vertical-align: middle;
}

.m_question_alphabet {
  display: table-cell;
  width: 50px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  border: 3px solid #6f9abc;
  height: 50px;
  line-height: 50px;
  border-radius: 5px;
  background-color: #fff;
  font-size: 18px;
  color: #222;
}

#question-counter {
  font-size: 14px;
  font-weight: bolder;
  padding: 10px;
}

.label {
  background: white;
  padding: 3px 5px;
  display: inline-block;
  box-sizing: border-box;
  border-radius: 5px;
  color: #222;
}

.m_question_q img {
  max-width: 100%;
  max-height: 150px;
}

.m_question_txt {
  display: block;
  color: rgb(0, 0, 0);
  font-weight: bold;
}

.progressbar {
  background: #005488;
  border: 3px solid #005488;
  width: 300px;
  height: 15px;
  margin: -3px 0;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: middle;
  max-width: 100%;
}

.ui-progressbar .ui-progressbar-value {
  margin: 0;
  height: 100%;
  background: #fc8b29;
  border-radius: 0;
}

.ui-progressbar {
  height: 15px;
  text-align: left;
  overflow: hidden;
}

.m_questions_list li {
  display: inline-block;
  width: 30px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.btn:hover {
  background: #d1d1d1;
  background: -moz-linear-gradient(top, #d1d1d1 0%, #a5a5a5 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d1d1d1), color-stop(100%, #a5a5a5));
  background: -webkit-linear-gradient(top, #d1d1d1 0%, #a5a5a5 100%);
  background: -o-linear-gradient(top, #d1d1d1 0%, #a5a5a5 100%);
  background: -ms-linear-gradient(top, #d1d1d1 0%, #a5a5a5 100%);
  background: linear-gradient(to bottom, #d1d1d1 0%, #a5a5a5 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d1d1d1", endColorstr="#a5a5a5", GradientType=0);
  border-color: #aaaaaa;
}

.num-selected:hover,
.btn-primary:hover {
  background: #d76503;
  background: -moz-linear-gradient(top, #d76503 0%, #b55400 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d76503), color-stop(100%, #b55400));
  background: -webkit-linear-gradient(top, #d76503 0%, #b55400 100%);
  background: -o-linear-gradient(top, #d76503 0%, #b55400 100%);
  background: -ms-linear-gradient(top, #d76503 0%, #b55400 100%);
  background: linear-gradient(to bottom, #d76503 0%, #b55400 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d76503", endColorstr="#b55400", GradientType=0);
  border-color: #ac5000;
}

.m_questions_list .btn {
  width: 30px;
  height: 30px;
  padding: 2px;
}

.btn {
  box-sizing: border-box;
  display: inline-block;
  cursor: pointer;
  padding: 8px 22px;
  font-size: 14px;
  background: #ececec;
  background: -moz-linear-gradient(top, #ececec 0%, #d1d1d1 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #d1d1d1));
  background: -webkit-linear-gradient(top, #ececec 0%, #d1d1d1 100%);
  background: -o-linear-gradient(top, #ececec 0%, #d1d1d1 100%);
  background: -ms-linear-gradient(top, #ececec 0%, #d1d1d1 100%);
  background: linear-gradient(to bottom, #ececec 0%, #d1d1d1 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ececec", endColorstr="#d1d1d1", GradientType=0);
  border: 2px solid #cccccc;
  border-top-color: rgb(204, 204, 204);
  border-right-color: rgb(204, 204, 204);
  border-bottom-color: rgb(204, 204, 204);
  border-left-color: rgb(204, 204, 204);
  border-radius: 3px;
  color: #222;
}

.btn-answer {
  background: #9ac2e1;
  background: -moz-linear-gradient(top, #9ac2e1 0%, #89b1d0 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9ac2e1), color-stop(100%, #89b1d0));
  background: -webkit-linear-gradient(top, #9ac2e1 0%, #89b1d0 100%);
  background: -o-linear-gradient(top, #9ac2e1 0%, #89b1d0 100%);
  background: -ms-linear-gradient(top, #9ac2e1 0%, #89b1d0 100%);
  background: linear-gradient(to bottom, #9ac2e1 0%, #89b1d0 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#9ac2e1", endColorstr="#89b1d0", GradientType=0);
  border-color: #78a0d0;
}

.num-selected {
  background: #ee7711;
  background: -moz-linear-gradient(top, #ee7711 0%, #d76503 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee7711), color-stop(100%, #d76503));
  background: -webkit-linear-gradient(top, #ee7711 0%, #d76503 100%);
  background: -o-linear-gradient(top, #ee7711 0%, #d76503 100%);
  background: -ms-linear-gradient(top, #ee7711 0%, #d76503 100%);
  background: linear-gradient(to bottom, #ee7711 0%, #d76503 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ee7711", endColorstr="#d76503", GradientType=0);
  border-color: #d76503;
  color: #222;
}

/* ============================================================
   Autoškola RazDva — nový vizuál (2026)
   Ink navy + lesní zelená + oranžová akcentní CTA, bez gradientů
   a ozubených rohových obrázků. Přepisuje pravidla výše v tomto
   souboru (a v quiz.css), třídy zůstávají stejné.
   ============================================================ */
:root {
  --ink: #14213D;
  --ink-70: rgba(20, 33, 61, .7);
  --paper: #F7F5EF;
  --line: #E4E0D6;
  --accent: #2F6F5E;
  --accent-dark: #1F4D40;
  --accent-soft: #EAF1EE;
  --cta: #E8590C;
  --cta-dark: #C24A09;
  --correct: #2F9E44;
  --correct-soft: #EAF9EF;
  --incorrect: #E03131;
  --incorrect-soft: #FBEAEA;
  --muted: #6B7280;
}

body {
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  background-color: var(--paper) !important;
  color: var(--ink);
}

h1,
h2,
h3,
.h1,
.h2,
.h3,
.quizz h1,
.m_question_txt {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

/* ---------- Header / nav ---------- */
header {
  background-color: #fff;
  box-shadow: 0 1px 0 var(--line);
  height: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.hp-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px 15px;
  width: 100%;
  box-sizing: border-box;
}

.hp-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.hp-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.hp-nav-logo-img {
  height: 34px;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.hp-logo-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hp-nav-cta {
  flex: none;
  margin-left: auto;
  padding: 11px 20px;
  font-size: 14px;
}

.main-menu {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.navbar-nav > li {
  border-right: 1px solid var(--line) !important;
  height: auto !important;
}

.navbar-nav > li:first-child,
.navbar-nav > li.first {
  border-left: 1px solid var(--line) !important;
}

.navbar-nav > li > a {
  color: var(--ink) !important;
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: 8px;
}

.nav > li > a:focus,
.nav > li > a:hover,
.nav > li > a.navSelected,
.nav > li > a.navSelected2 {
  background-color: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
}

.main-menu .icon-bar {
  background-color: var(--ink);
}

@media only screen and (min-width: 1000px) {
  .nav-wrap {
    padding-right: 0;
  }
}
@media only screen and (max-width: 999px) {
  .hp-nav {
    flex-wrap: nowrap;
  }
  .hp-nav-cta {
    display: none !important;
  }
  .nav-wrap {
    background: #fff;
  }
}
@media only screen and (max-width: 480px) {
  .hp-logo-text {
    display: none;
  }
}
.page {
  padding-top: 88px !important;
}

@media only screen and (max-width: 767px) {
  .page {
    padding-top: 10px !important;
  }
  header {
    position: static !important;
  }
}
/* ---------- Buttons ---------- */
.btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  filter: none;
  box-shadow: none;
}

.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  filter: none;
  box-shadow: none;
}

.btn-answer {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  filter: none;
}

.num-selected,
.btn-primary,
.m_question_q_btn .m_question_primary {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  filter: none;
}

.num-selected:hover,
.btn-primary:hover {
  background: var(--cta-dark) !important;
  border-color: var(--cta-dark) !important;
  filter: none;
}

.m_questions_list .btn-success {
  background: var(--correct) !important;
  border-color: var(--correct) !important;
}

.m_questions_list .btn-danger {
  background: var(--incorrect) !important;
  border-color: var(--incorrect) !important;
}

/* ---------- Question list / answers ---------- */
.m_question_q {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 13px;
  padding: 14px 18px;
  margin: 0 0 12px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.m_question_q:focus,
.m_question_q:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
}

.m_question_alphabet {
  flex: none;
  width: 30px;
  height: 30px;
  line-height: 27px;
  border: 1.5px solid #C9C4B6;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.m_question_q p,
.m_question_q .m_question_txt {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.m_question_q img {
  border-radius: 8px;
}

.question-mark {
  flex: none;
  width: 20px;
  height: 20px;
  position: static;
  background: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  visibility: hidden;
}

.mqq_yes,
.mqq_yes:hover,
.mqq_yes:focus {
  background-color: var(--correct-soft) !important;
  border-color: var(--correct) !important;
}

.mqq_yes .m_question_alphabet {
  background: var(--correct);
  border-color: var(--correct);
  color: #fff;
}

.mqq_yes .question-mark {
  visibility: visible;
  color: var(--correct);
}

.mqq_yes .question-mark::after {
  content: "✓";
}

.mqq_no,
.mqq_no:hover,
.mqq_no:focus {
  background-color: var(--incorrect-soft) !important;
  border-color: var(--incorrect) !important;
}

.mqq_no .m_question_alphabet {
  background: var(--incorrect);
  border-color: var(--incorrect);
  color: #fff;
}

.mqq_no .question-mark {
  visibility: visible;
  color: var(--incorrect);
}

.mqq_no .question-mark::after {
  content: "✕";
}

.m_question_selected:not(.mqq_yes):not(.mqq_no) {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.m_question_selected:not(.mqq_yes):not(.mqq_no) .m_question_alphabet {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.incorrect_answer,
.incorrect_answer_count {
  color: var(--incorrect);
}

.correct_answer,
.correct_answer_count {
  color: var(--correct);
}

/* ---------- Progress bar ---------- */
.progressbar {
  background: var(--line);
  border-color: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.ui-progressbar .ui-progressbar-value {
  background: var(--accent);
  border-radius: 999px;
}

/* ---------- Page chrome ---------- */
.breadcrumb {
  background-color: transparent;
  color: var(--muted);
}

.page-section ul li {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 6px;
  margin-left: 0;
  overflow: hidden;
}

.page-section ul li:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.label {
  border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--ink) !important;
  color: rgba(247, 245, 239, 0.75);
}

.hp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 15px;
}

.hp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 16px;
}

.hp-footer-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  flex: none;
}

.hp-footer .copyright {
  font-size: 13px;
  color: rgba(247, 245, 239, 0.6);
  padding: 0;
}

.hp-footer .copyright a {
  color: rgba(247, 245, 239, 0.85);
}

.hp-footer .copyright a:hover {
  color: var(--accent);
}

/* ============================================================
   Homepage (main.php)
   ============================================================ */
.hp-hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 56px 15px 72px;
  flex-wrap: wrap;
}

.hp-hero-copy {
  flex: 1 1 460px;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.hp-h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}

.hp-accent {
  color: var(--accent);
  font-style: italic;
}

.hp-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
  padding: 0;
}

.hp-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hp-btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.hp-btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.hp-btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hp-btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.hp-btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hp-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hp-stats > div {
  display: flex;
  flex-direction: column;
}

.hp-stats strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
}

.hp-stats span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hp-hero-card {
  flex: 0 1 380px;
  background: var(--ink);
  border-radius: 22px;
  padding: 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}

.hp-hero-timer {
  background: rgba(247, 245, 239, 0.12);
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 1 !important;
}

.hp-hero-question {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
}

.hp-hero-question-txt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}

.hp-hero-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.hp-hero-answer-active {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--ink);
}

.hp-hero-letter {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid #C9C4B6;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--muted);
}

.hp-hero-letter-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hp-hero-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.18);
  overflow: hidden;
}

.hp-hero-progress span {
  display: block;
  height: 100%;
  background: var(--cta);
  border-radius: 999px;
}

.hp-categories {
  padding: 16px 15px 72px;
}

.hp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.hp-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hp-h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 29px;
  margin: 0;
}

.hp-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  text-decoration: none;
}

/* ---------- Okruhy otázek – dlaždice ---------- */
.hp-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp-card {
  --tone: var(--accent);
  --tone-dark: var(--accent-dark);
  --tone-soft: var(--accent-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 20px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tone);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.hp-card:hover, .hp-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--tone);
  box-shadow: 0 24px 44px -26px rgba(20, 33, 61, 0.35);
}
.hp-card:hover::before, .hp-card:focus-visible::before {
  transform: scaleX(1);
}
.hp-card:hover .hp-card-icon, .hp-card:focus-visible .hp-card-icon {
  background: var(--tone);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.hp-card:hover .hp-card-bg, .hp-card:focus-visible .hp-card-bg {
  opacity: 0.09;
  transform: rotate(-12deg) scale(1.08);
}
.hp-card:hover .hp-card-go, .hp-card:focus-visible .hp-card-go {
  color: var(--tone-dark);
}
.hp-card:hover .hp-card-go svg, .hp-card:focus-visible .hp-card-go svg {
  transform: translateX(4px);
}
.hp-card:hover .hp-card-meter span, .hp-card:focus-visible .hp-card-meter span {
  opacity: 1;
}
.hp-card:focus-visible {
  outline: 3px solid var(--tone-soft);
  outline-offset: 2px;
}

.hp-card--cta {
  --tone: var(--cta);
  --tone-dark: var(--cta-dark);
  --tone-soft: #FBEBE0;
}

.hp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hp-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-soft);
  color: var(--tone);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.hp-card-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line);
  letter-spacing: -0.02em;
}

.hp-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}

.hp-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.hp-card-meter {
  margin-top: auto;
  height: 5px;
  border-radius: 999px;
  background: #EFECE4;
  overflow: hidden;
  margin-bottom: 14px;
}
.hp-card-meter span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  min-width: 6%;
  border-radius: inherit;
  background: var(--tone);
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.hp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hp-card-count strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 2px;
}

.hp-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--tone);
  transition: color 0.25s ease;
}
.hp-card-go svg {
  transition: transform 0.25s ease;
}

.hp-card-bg {
  position: absolute;
  right: -26px;
  bottom: -26px;
  z-index: -1;
  color: var(--tone);
  opacity: 0.045;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.hp-card--test {
  --tone: var(--cta);
  --tone-dark: #fff;
  --tone-soft: rgba(255, 255, 255, .1);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.hp-card--test::before {
  transform: scaleX(1);
}
.hp-card--test .hp-card-icon {
  background: var(--cta);
  color: #fff;
}
.hp-card--test .hp-card-title {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}
.hp-card--test .hp-card-top {
  margin-bottom: 16px;
}
.hp-card--test .hp-card-title {
  margin-bottom: 4px;
}
.hp-card--test .hp-card-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.hp-card--test .hp-card-go {
  color: #fff;
  background: var(--cta);
  padding: 9px 14px;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.hp-card--test:hover, .hp-card--test:focus-visible {
  border-color: var(--cta);
}
.hp-card--test:hover .hp-card-icon, .hp-card--test:focus-visible .hp-card-icon {
  background: #fff;
  color: var(--cta);
}
.hp-card--test:hover .hp-card-go, .hp-card--test:focus-visible .hp-card-go {
  color: #fff;
  background: var(--cta-dark);
}

.hp-card-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFD8A8;
  padding: 5px 10px;
  border-radius: 999px;
}

.hp-card-facts {
  margin-top: auto;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.hp-card-facts span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 4px;
}
.hp-card-facts strong {
  display: block;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

@media only screen and (max-width: 1000px) {
  .hp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-card,
.hp-card *,
.hp-card::before {
    transition: none !important;
  }
  .hp-card:hover {
    transform: none;
  }
}
.hp-about {
  padding: 0 15px 64px;
}

.hp-about-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  color: var(--muted);
  line-height: 1.7;
}

.hp-about-text p {
  padding: 0 0 10px;
  margin: 0;
}

@media only screen and (max-width: 900px) {
  .hp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-h1 {
    font-size: 36px;
  }
}
@media only screen and (max-width: 620px) {
  .hp-card-grid {
    grid-template-columns: 1fr;
  }
  .hp-hero-inner {
    padding-top: 24px;
  }
}
/* ============================================================
   Obrazovka testu (body_header_test.php)
   ============================================================ */
.hp-header-test {
  position: fixed;
}

.hp-quiz-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 15px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.hp-quiz-progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-quiz-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-quiz-count strong {
  color: var(--ink);
}

.hp-quiz-timer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.hp-quiz-exit {
  flex: none;
  padding: 10px 18px;
  font-size: 13px;
}

@media only screen and (max-width: 767px) {
  .hp-header-test {
    position: static;
  }
  .hp-quiz-exit,
.hp-quiz-timer {
    display: none;
  }
}
@media only screen and (max-width: 999px) {
  .hp-quiz-exit {
    padding: 10px 14px;
  }
}
.m_question_nb {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
}

.m_question_nbtotal {
  color: var(--muted);
}

.middle_head_title,
.middle_head_title a {
  color: var(--ink);
}

.middle_head_title strong {
  color: var(--accent-dark);
}

/* ============================================================
   Výsledek testu (test-score.php)
   ============================================================ */
.hp-score-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.hp-score-badge {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.hp-score-pass .hp-score-badge {
  background: var(--correct-soft);
  color: var(--correct);
}

.hp-score-fail .hp-score-badge {
  background: var(--incorrect-soft);
  color: var(--incorrect);
}

.hp-score-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 8px;
}

.hp-score-pass .hp-score-title {
  color: var(--correct);
}

.hp-score-fail .hp-score-title {
  color: var(--incorrect);
}

.hp-score-points {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hp-score-points strong {
  color: var(--ink);
  font-size: 18px;
}

.hp-score-stats {
  display: flex;
  gap: 16px;
  max-width: 460px;
  margin: 0 auto 28px;
}

.hp-score-stat {
  flex: 1 1 0;
  border-radius: 14px;
  padding: 18px;
}

.hp-score-stat-correct {
  background: var(--correct-soft);
}

.hp-score-stat-incorrect {
  background: var(--incorrect-soft);
}

.correct_answer_count,
.incorrect_answer_count {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  padding: 0;
}

.correct_answer,
.incorrect_answer {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 0 0;
}

.hp-score-cta {
  display: inline-block;
}

@media only screen and (max-width: 480px) {
  .hp-score-stats {
    flex-direction: column;
  }
}
/* ============================================================
   Podstránky sekcí (Testy, Otázky, Dopravní značky, okruhy)
   ============================================================ */
.page-section > .container {
  max-width: 1080px;
  padding-bottom: 56px;
}

.page-section .breadcrumb {
  padding: 0;
  margin: 8px 0 18px;
  font-size: 13px;
}

.page-section .breadcrumb a {
  color: var(--muted);
}

.page-section .breadcrumb a:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* Úvodní textový blok sekce jako karta */
.page-section .text-justify {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.65;
}

.page-section .text-justify:empty {
  display: none;
}

.page-section .text-justify h1,
.page-section > .container > h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  color: var(--ink);
}

.page-section .text-justify h2 {
  font-size: 22px;
  margin: 22px 0 6px;
}

.page-section .text-justify p,
.page-section > .container > p {
  padding: 0;
  margin: 0 0 14px;
}

.page-section .text-justify a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(47, 111, 94, 0.35);
  text-underline-offset: 3px;
}

.page-section .text-justify a:not(.btn):hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.page-section .btn-success {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 13px 28px;
}

.page-section .btn-success:hover {
  background: var(--cta-dark) !important;
  border-color: var(--cta-dark) !important;
}

/* Odrážkový seznam v textu – žádné rámečky jako u výpisů */
.page-section .text-justify ul {
  background: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-section .text-justify ul li,
.page-section .text-justify ul li:hover {
  border: 0;
  border-radius: 0;
  background: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
  overflow: visible;
}

.page-section .text-justify ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.page-section .text-justify ul li a {
  display: inline;
  padding: 0;
}

.page-section ul.clanky_list:empty {
  display: none;
}

/* Mřížka okruhů / kategorií značek */
.page-section .category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  background: none;
}

.page-section .category-list::before,
.page-section .category-list::after {
  display: none;
}

.page-section .category-list > li {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  overflow: visible;
}

.page-section .category-list > li:hover {
  background: none;
}

.page-section .category-list > li > a {
  display: block;
  height: 100%;
  padding: 0;
  text-decoration: none;
}

.page-section .category-item {
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.page-section .category-list > li > a:hover .category-item {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.page-section .category-item .preview {
  display: flex;
  align-items: center;
  gap: 14px;
  height: auto;
  background: none;
}

.page-section .category-item .preview > span:empty {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  position: relative;
}

.page-section .category-item .preview > span:empty::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.page-section .category-item .preview img {
  max-height: 48px;
  width: auto;
  flex: none;
}

.page-section .category-item .figcaption {
  position: static;
  background: none;
  padding: 0;
  height: auto;
  opacity: 1;
}

.page-section .category-item figcaption {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  padding: 0;
}

/* Výpis otázek v okruhu */
.page-section > .container > ul:not(.category-list) {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  margin: 0;
}

.page-section > .container > ul:not(.category-list) > li {
  border: 0;
  border-radius: 10px;
  margin: 0;
}

.page-section > .container > ul:not(.category-list) > li + li {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.page-section > .container > ul:not(.category-list) > li > a {
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.page-section > .container > ul:not(.category-list) > li > a strong {
  display: inline-block;
  margin: 0 8px 0 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, Consolas, monospace;
}

@media only screen and (max-width: 620px) {
  .page-section .text-justify {
    padding: 22px 18px;
  }
  .page-section .text-justify h1,
.page-section > .container > h1 {
    font-size: 28px;
  }
}
/* Credit pivovarcik.cz v patičce */
.pm-credit {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pm-credit:hover {
  opacity: 1;
}

.pm-credit img {
  display: block;
}

/* ============================================================
   Test – okruh/body/připnutí, odpočet, statistiky (TestStats)
   ============================================================ */
.tq-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.tq-meta-okruh,
.tq-meta-points {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tq-meta-points {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.tq-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}

.tq-pin:hover,
.tq-pin:focus {
  color: var(--ink);
  text-decoration: none;
}

.tq-pin-on,
.tq-pin-on:hover {
  color: #fff;
  background: var(--cta);
  border-color: var(--cta);
}

.tq-hidden {
  display: none;
}

.tq-video-wait {
  display: block;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  text-align: center;
}

.tq-video-wait a {
  font-weight: 700;
  margin-left: 6px;
}

.m_question_countdown {
  display: inline-block;
  margin: 8px 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  float: right;
}

.m_question_countdown strong {
  color: var(--cta);
}

.m_question_countdown a {
  margin-left: 8px;
  font-weight: 600;
}

.tq-options {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.tq-options label {
  font-weight: 400;
  cursor: pointer;
}

.ts-compare,
.ts-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 8px;
}

.ts-summary {
  max-width: none;
  margin-bottom: 24px;
}

.ts-compare-item,
.ts-summary-item {
  flex: 1 1 160px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  text-align: center;
}

.ts-compare-val {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.ts-compare-val small {
  font-size: 13px;
  color: var(--muted);
}

.ts-compare-lbl {
  font-size: 12px;
  color: var(--muted);
}

.ts-compare-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hp-score-cta + .hp-score-cta {
  margin-left: 8px;
}

.ts-h1 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin: 24px 0 20px;
}

.ts-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.ts-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 16px;
}

.ts-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ts-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
}

.ts-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ts-table td:first-child {
  white-space: normal;
}

.ts-table tr.ts-bad td:first-child {
  color: var(--incorrect);
  font-weight: 600;
}

.ts-table tr.ts-good td:first-child {
  color: var(--correct);
  font-weight: 600;
}

.ts-bar {
  display: inline-block;
  width: 80px;
  height: 8px;
  border-radius: 99px;
  background: var(--paper);
  margin-right: 8px;
  vertical-align: middle;
  overflow: hidden;
}

.ts-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.ts-bad .ts-bar span {
  background: var(--incorrect);
}

.ts-good .ts-bar span {
  background: var(--correct);
}

.ts-history {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  border-bottom: 1px solid var(--line);
}

.ts-history-bar {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  max-width: 40px;
}

.ts-history-bar span {
  display: block;
  width: 100%;
  border-radius: 6px 6px 0 0;
  position: relative;
  background: var(--incorrect);
}

.ts-history-bar.ts-good span {
  background: var(--correct);
}

.ts-history-bar em {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.ts-qlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ts-qlist li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ts-qlist li > a:not(.tq-pin) {
  flex: 1 1 300px;
  color: var(--ink);
}

.ts-qbadge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--incorrect-soft);
  color: var(--incorrect);
}

@media only screen and (max-width: 600px) {
  .ts-table th:nth-child(5),
.ts-table td:nth-child(5) {
    display: none;
  }
  .ts-bar {
    width: 40px;
  }
  .ts-card {
    padding: 16px;
  }
}
/* ============================================================
   Přihlášení / registrace (prihlaseni.php) + odkaz v hlavičce
   ============================================================ */
.hp-nav-user {
  flex: none;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hp-nav-user a {
  color: var(--ink);
}

.hp-nav-user .hp-nav-logout {
  margin-left: 12px;
  color: var(--muted);
  font-weight: 400;
}

.hp-nav-cta-user {
  margin-left: 0;
}

.au-page {
  padding: 40px 15px 60px;
}

.au-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.au-tabs {
  display: flex;
  gap: 6px;
  background: var(--paper);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.au-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
}

.au-tab-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.au-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.au-form label small {
  color: var(--muted);
  font-weight: 400;
}

.au-form input[type=email],
.au-form input[type=password],
.au-form input[type=text] {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
}

.au-form input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.au-form .au-check {
  font-weight: 400;
}

.au-submit {
  width: 100%;
  border: 0;
}

.au-error {
  background: var(--incorrect-soft);
  color: var(--incorrect);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.au-note {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
}

@media only screen and (max-width: 999px) {
  /* hamburger je absolutně vpravo (~62px) – uvolnit mu místo */
  .hp-nav-user {
    margin-right: 56px;
  }
}
@media only screen and (max-width: 420px) {
  .hp-nav-user {
    font-size: 13px;
  }
  .hp-nav-user .hp-nav-logout {
    margin-left: 8px;
  }
}
.au-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 18px;
}

.au-info {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ---------- Seznam otázek seskupený podle okruhů ---------- */
.m_questions_list {
  height: auto;
  padding-bottom: 4px;
}

.tq-qgroups {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.tq-qgroup {
  display: inline-flex;
  flex-direction: column;
  padding: 3px 5px 5px;
  border-radius: 10px;
  background: var(--tq-grp, #F1F0EA);
  border-bottom: 2px solid var(--tq-grp-line, var(--line));
}

.tq-qgroup-name {
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tq-grp-text, var(--muted));
  width: 0;
  min-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px 2px;
}

.tq-qgroup-btns {
  display: flex;
  gap: 4px;
}

.tq-qgroup .btn:not(.btn-answer) {
  width: 30px;
  height: 30px;
  padding: 2px;
  background: #fff;
}

.tq-grp-1 {
  --tq-grp: #EEF3FB;
  --tq-grp-line: #9DB7E3;
  --tq-grp-text: #3D5F99;
}

.tq-grp-2 {
  --tq-grp: #FBF3E6;
  --tq-grp-line: #E5BE7A;
  --tq-grp-text: #93661B;
}

.tq-grp-3 {
  --tq-grp: #EDF6EF;
  --tq-grp-line: #93C9A0;
  --tq-grp-text: #2F7A43;
}

.tq-grp-4 {
  --tq-grp: #F5EEF8;
  --tq-grp-line: #C3A3D4;
  --tq-grp-text: #6E4589;
}

.tq-grp-5 {
  --tq-grp: #FCEFEF;
  --tq-grp-line: #E5A3A3;
  --tq-grp-text: #A23B3B;
}

.tq-grp-6 {
  --tq-grp: #EAF6F7;
  --tq-grp-line: #8CC6CC;
  --tq-grp-text: #2B7178;
}

.tq-grp-7 {
  --tq-grp: #F7F4E6;
  --tq-grp-line: #CFC27C;
  --tq-grp-text: #7A6B1F;
}

.tq-grp-0 {
  --tq-grp: #F1F0EA;
  --tq-grp-line: #D6D2C4;
  --tq-grp-text: #6B7280;
}

/* ---------- Odpočet automatického přechodu v tlačítku "Další otázka" ---------- */
.tq-cd {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 6px 0 4px;
  vertical-align: -5px;
  cursor: pointer;
}

.tq-cd svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.tq-cd circle {
  fill: none;
  stroke-width: 2.4;
}

.tq-cd-bg {
  stroke: rgba(255, 255, 255, 0.35);
}

.tq-cd-ring {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 50.27;
  stroke-dashoffset: 0;
  animation: tq-cd-run linear forwards;
}

.tq-cd b {
  position: absolute;
  inset: 0;
  font-size: 10px;
  line-height: 20px;
  text-align: center;
}

.tq-cd:hover .tq-cd-ring {
  stroke: rgba(255, 255, 255, 0.6);
}

@keyframes tq-cd-run {
  to {
    stroke-dashoffset: 50.27;
  }
}
.tq-cd-on .fa {
  display: none;
}

.m_question_q_btn .tq-auto {
  float: right;
  margin: 9px 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.m_question_q_btn .tq-auto input {
  margin: 0 4px 0 0;
  vertical-align: -2px;
  accent-color: var(--cta);
}

/* ============================================================
   Můj profil (muj-profil.php) a lektor (lektor.php)
   ============================================================ */
.pf-links {
  margin: -10px 0 18px;
  font-size: 14px;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 24px;
}

.pf-grid .au-form input[disabled] {
  background: var(--paper);
  color: var(--muted);
}

.pf-inline {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pf-inline input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
}

.pf-inline .hp-btn {
  flex: none;
  border: 0;
}

.pf-kod {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 6px;
}

.pf-grow {
  flex: 1;
}

.pf-link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.pf-link-btn:hover {
  color: var(--incorrect);
}

.pf-invite {
  border-color: var(--cta);
  background: #FFF8F3;
}

.pf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 24px 0 20px;
}
.pf-head .ts-h1 {
  margin: 0 0 4px;
}
.pf-head .hp-btn {
  flex: none;
}

.pf-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.pf-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.pf-tab {
  flex: none;
  padding: 12px 18px;
  margin-bottom: -1px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted) !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pf-tab:hover {
  color: var(--ink) !important;
}
.pf-tab.is-active {
  color: var(--ink) !important;
  border-bottom-color: var(--cta);
}

.pf-panel[hidden] {
  display: none;
}

.ts-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ts-card-head .ts-title {
  margin: 0;
}

.ts-count {
  display: inline-block;
  min-width: 26px;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.ts-tests {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.ts-test {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 160px auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ts-test:last-child {
  border-bottom: 0;
}

.ts-test-result {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.ts-test-result.ts-good {
  background: var(--correct-soft);
  color: var(--correct);
}
.ts-test-result.ts-bad {
  background: var(--incorrect-soft);
  color: var(--incorrect);
}

.ts-test-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ts-test-info strong {
  font-size: 17px;
  color: var(--ink);
}
.ts-test-info strong small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.ts-test-info > small {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-test-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.ts-test-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--incorrect);
}
.ts-test-meter.ts-good span {
  background: var(--correct);
}

.ts-test-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent) !important;
  white-space: nowrap;
}

.ts-more {
  margin-top: 8px;
}
.ts-more summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.ts-more .ts-tests {
  margin-top: 0;
}

.ts-card-head + .ts-tests {
  margin-top: 0;
}

.ts-empty .hp-btn {
  margin-top: 6px;
}

@media only screen and (max-width: 600px) {
  .ts-test {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .ts-test-result {
    grid-column: 1/-1;
  }
  .ts-test-meter {
    display: none;
  }
  .pf-head .hp-btn {
    width: 100%;
    text-align: center;
  }
}
.lk-nazev {
  font-size: 16px;
  color: var(--muted);
  font-family: inherit;
  margin-left: 8px;
}

.lk-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.lk-invite .pf-inline {
  flex: 1 1 340px;
  max-width: 560px;
  margin: 0;
}

.lk-table td {
  vertical-align: middle;
}

.lk-last span {
  display: inline-block;
  min-width: 24px;
  margin-right: 3px;
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: var(--incorrect);
}

.lk-last span.ts-good {
  background: var(--correct);
}

@media only screen and (max-width: 700px) {
  .lk-table th:nth-child(5),
.lk-table td:nth-child(5),
.lk-table th:nth-child(7),
.lk-table td:nth-child(7) {
    display: none;
  }
  .lk-table td {
    white-space: normal;
  }
}
/* Hamburger svisle zarovnaný s „Přihlásit / Můj účet“ */
@media only screen and (max-width: 999px) {
  #menu-burger {
    top: 50%;
    right: 15px;
    padding: 10px 0;
    transform: translateY(-50%);
  }
  .hp-nav-user {
    margin-right: 47px;
  }
  /* 32px burger + 15px mezera */
}
@media only screen and (max-width: 767px) {
  header {
    position: relative !important;
    /* static by poslal burger mimo hlavičku */
  }
}
/* ---------- Mobilní rozbalovací menu (panel zprava) ---------- */
@media only screen and (max-width: 999px) {
  .main-menu .menu-bg {
    position: fixed;
    inset: 0;
    height: auto;
    background: rgba(20, 33, 61, 0.45);
    z-index: 190;
  }
  .nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: min(300px, 86vw);
    box-sizing: border-box;
    display: block;
    padding: 84px 16px 24px;
    background: #fff;
    box-shadow: -8px 0 30px rgba(20, 33, 61, 0.15);
    transform: translateX(105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 195;
  }
  .nav-wrap::before {
    content: "Menu";
    position: absolute;
    top: 26px;
    left: 20px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
  }
  .main-menu.is-active .nav-wrap {
    transform: translateX(0);
  }
  /* zavírací křížek nad panelem */
  .main-menu.is-active #menu-burger {
    position: fixed;
    top: 36px;
    right: 18px;
  }
  .nav-wrap .navbar-nav {
    float: none;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .nav-wrap .navbar-nav > li,
.nav-wrap .navbar-nav > li:first-child,
.nav-wrap .navbar-nav > li.first {
    display: block;
    float: none;
    border: 0 !important;
    height: auto !important;
  }
  .nav-wrap .navbar-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px !important;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    color: var(--ink) !important;
  }
  .nav-wrap .navbar-nav > li > a::after {
    content: "›";
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
  }
  .nav-wrap .navbar-nav > li.navSelected2 > a,
.nav-wrap .navbar-nav > li.navSelected > a {
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
  }
  .nav-wrap .navbar-nav > li.navSelected2 > a::after,
.nav-wrap .navbar-nav > li.navSelected > a::after {
    color: var(--accent);
  }
}
/* Přihlášení/účet v mobilu jen v burger panelu */
.nav-wrap-user {
  display: none;
}

@media only screen and (max-width: 999px) {
  .hp-nav-user {
    display: none !important;
  }
  .nav-wrap-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-wrap-user .hp-btn {
    text-align: center;
  }
  .nav-wrap-logout {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }
}
/* Logo s textem i na malém mobilu (účet je v burgeru, je místo) */
@media only screen and (max-width: 480px) {
  .hp-logo-text {
    display: inline;
    font-size: 17px;
  }
}
/* Patička – výška podle obsahu (původně absolute + height 80px → na mobilu se ořezávala) */
#main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
}

#main > .page {
  flex: 1 0 auto;
  padding-bottom: 40px;
}

footer {
  position: static;
  height: auto;
  flex: none;
}

@media only screen and (max-width: 620px) {
  .hp-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 16px 26px;
  }
}
/* Kontejner úvodní stránky (a hlavičky/patičky) – obsah max 1140px na střed */
.wrapper {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.hp-hero > .wrapper,
.hp-categories > .wrapper,
.hp-about > .wrapper {
  padding-left: 15px;
  padding-right: 15px;
}

.hp-categories,
.hp-about {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Hledání v otázkách (prg/hledani.php, template/hledaniOtazek.php) ---------- */
.qs-form {
  display: flex;
  gap: 10px;
  margin: 6px 0 4px;
}
.qs-form input[type=search] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.qs-form input[type=search]:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.qs-form .hp-btn {
  flex: none;
  border: 0;
}

.qs-form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 24px;
}

.qs-info {
  margin: 14px 0 0 !important;
  color: var(--muted);
  font-size: 15px;
}

.page-section mark {
  background: #FFE8A3;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.qs-okruh {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media only screen and (max-width: 480px) {
  .qs-form {
    flex-direction: column;
  }
}
/* Vyhodnocená odpověď: jen malý ✓/✕ vpravo – zrušit staré velké obrázky
   (q_yes/q_no.png) a absolutní pozici .m_question_selected .question-mark z _custom */
.mqq_yes,
.mqq_yes:hover,
.mqq_yes:focus,
.mqq_no,
.mqq_no:hover,
.mqq_no:focus,
.mqq_select,
.mqq_select:hover {
  background-image: none !important;
  color: var(--ink);
}

.m_question_q .question-mark,
.m_question_selected .question-mark {
  position: static;
  width: 20px;
  height: 20px;
  margin-left: auto;
  background-image: none !important;
}

/* Prohlížení otázky (question.php): ← Předchozí | Zobrazit správnou odpověď | Další → */
.m_question_q_btn:has(.m_question_show) {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.m_question_q_btn:has(.m_question_show) .btn {
  margin-bottom: 0;
}
.m_question_q_btn:has(.m_question_show) .m_question_show {
  margin: 0 auto;
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.m_question_q_btn:has(.m_question_show) .m_question_show.is-shown {
  opacity: 0.55;
}
.m_question_q_btn:has(.m_question_show) .m_question_next {
  margin-left: auto;
}
.m_question_q_btn:has(.m_question_show) .m_question_show + .m_question_next {
  margin-left: 0;
}

@media only screen and (max-width: 620px) {
  .m_question_q_btn:has(.m_question_show) .m_question_show {
    order: -1;
    flex: 1 1 100%;
  }
  .m_question_q_btn:has(.m_question_show) .m_question_prev,
.m_question_q_btn:has(.m_question_show) .m_question_next {
    flex: 1 1 0;
    text-align: center;
  }
}
/* Výzva nad odpověďmi (question.php) */
.m_question_hint {
  margin: 32px 0 12px !important;
  /* přebít .page-section > .container > p */
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Info box na konci prohlížení otázky (question.php) */
.tq-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 28px 0 0;
  padding: 16px 18px;
  background: #EAF2FB;
  border: 1px solid #C5DBF2;
  border-radius: 12px;
  color: #1E4E8C;
}
.tq-info .fa {
  font-size: 20px;
  line-height: 1.3;
  flex: none;
  color: #2F6FBF;
}
.tq-info p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px;
  line-height: 1.55;
}

/* Kód otázky v meta řádku (question.php) */
.tq-meta-code {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
}

.page-section .breadcrumb > span:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* Tipy na prázdné stránce hledání */
.page-section .qs-tips {
  margin: 12px 0 0 !important;
  font-size: 14px;
  color: var(--muted);
}
.page-section .qs-tips a {
  display: inline-block;
  margin: 6px 4px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.page-section .qs-tips a:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ============================================================
   Vyhodnocení testu – všechny otázky najednou (prg/test-score.php)
   ============================================================ */
.tr-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
  scroll-margin-top: 90px;
}
.tr-list-head .ts-title {
  margin: 0;
}

.tr-filter {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.tr-filter-btn {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.tr-filter-btn.is-active {
  background: var(--ink);
  color: #fff;
}

#main:has(.tr-nav) {
  overflow: clip;
}

.tr-nav {
  position: sticky;
  top: 70px;
  z-index: 5;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 18px;
  background: var(--paper);
}
.tr-nav .tr-nav-dim {
  opacity: 0.3;
}

.tr-q {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px 10px;
  margin-bottom: 18px;
  scroll-margin-top: 150px;
}
.tr-q.tr-q-ok {
  border-left-color: var(--correct);
}
.tr-q.tr-q-bad, .tr-q.tr-q-none {
  border-left-color: var(--incorrect);
}
.tr-q:target {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tr-q .m_question {
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 0;
}
.tr-q .m_question_q_list {
  margin: 0;
}
.tr-q .m_question_q {
  cursor: default;
}
.tr-q .tq-meta {
  margin: 0 0 0 auto;
}
.tr-q .tq-meta-points {
  margin-bottom: 0;
  font-size: 12px;
}

.tr-q-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.tr-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.tr-q-result {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tr-q-ok .tr-q-result {
  background: var(--correct-soft);
  color: var(--correct);
}
.tr-q-bad .tr-q-result, .tr-q-none .tr-q-result {
  background: var(--incorrect-soft);
  color: var(--incorrect);
}

@media only screen and (max-width: 600px) {
  .tr-q {
    padding: 16px 14px 6px;
    border-radius: 14px;
  }
  .tr-q .tq-meta {
    margin-left: 0;
    width: 100%;
  }
  .tr-nav {
    top: 60px;
  }
}
