/* ----- Результат теста ----- */
#result {
  text-align: center;
}

.result-main {
  margin-top: 10px;
  margin-bottom: 20px;
}

.result-score {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.result-details {
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
}

.result-progress {
  width: 100%;
  max-width: 280px;
  height: 10px;
  border-radius: 9999px;
  background: #e5e7eb;
  margin: 16px auto 0;
  overflow: hidden;
}

.result-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #22c55e;
  transition: width .35s ease, background-color .2s ease;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .result-actions {
    flex-direction: row;
  }

  .result-actions .btn {
    flex: 1;
  }
}

html,
body {
  touch-action: pan-x pan-y;
}

:root {
  --brand: #3aa7a3;
  --bg: #f1fbfb;
  --card: #ffffff;
  --muted: #637074;
  --btn: #c6e4e4;
  --btnHover: #b3dada;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  margin: 0;
  color: #0b1a1d;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

h1 {
  margin: 0 !important;
  background: #0a0a0a;
  color: white;
  width: 100%;
  font-size: 16px;
  text-align: center;
  padding: 14px 12px;
  font-weight: 700;
  letter-spacing: .2px;
}

.lid-main {
  width: min(860px, 94vw);
  margin: 18px auto;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.menu h2 {
  margin: 8px 0 2px;
}

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

.muted.small {
  font-size: .9rem;
}

.btn {
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #f4c21b;
  color: black;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin: 10px 0;
  letter-spacing: .2px;
}

.btn:hover {
  background: #e5b117;
}

.btn.secondary {
  background: #e7f2f3;
  font-weight: 600;
}

.homebtn {
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #f4c21b;
  color: black;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin: 10px 0;
  letter-spacing: .2px;
}

.homebtn:hover {
  background: #e5b117;
}

.homebtn.secondary {
  background: #e7f2f3;
  font-weight: 600;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef7f7;
  color: #0b1a1d;
  font-size: .8rem;
}

.qtitle {
  font-size: 1.05rem;
  margin: 6px 0 6px;
}

.answer {
  border: 1px solid #d8e5e7;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 6px 0;
  cursor: pointer;
}

.answer .de {
  display: block;
}

.answer .tr {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.answer.correct {
  border-color: #2aa44f !important;
  background: #eefaf1 !important;
}

.answer.wrong {
  border-color: #d64545 !important;
  background: #fff1f1 !important;
}

.answer.locked {
  pointer-events: none;
  opacity: 0.95;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.flagbtn {
  min-width: 42px;
}

.star {
  cursor: pointer;
  user-select: none;
  font-size: 1.3rem;
  padding: 4px 6px;
  border-radius: 10px;
  color: #c0c9cd;
}

.star.active {
  color: #f5b400;
}

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.grow {
  flex: 1;
}

.qimg {
  max-width: 100%;
  width: min(460px, 94%);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  margin: 6px auto 10px;
  display: block;
}

.error {
  background: #fff4f4;
  border: 1px solid #ffd1d1;
  color: #8a1d1d;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.picker-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-top: 1px solid #e6ecee;
  z-index: 20;
}

.picker-inner {
  width: min(860px, 94vw);
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.picker-inner label {
  color: #3b4b4f;
  font-weight: 600;
}

.picker-select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d4e4e7;
  background: #f6fbfb;
  font-weight: 700;
  color: #000;
}

#settings .form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

#settings .form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #2f3f43;
}

#settings .form .row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2f3f43;
}

#settings select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4e4e7;
  border-radius: 10px;
  background: #f6fbfb;
  font-weight: 700;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
}

#settings .hint {
  font-size: .9rem;
  color: var(--muted);
}

.lid-ad-wrap {
  width: min(860px, 94vw);
  margin: 18px auto 24px;
}

.lid-ad-box {
  text-align: center;
}

#screen-loader {
  text-align: center;
  padding: 28px 16px;
}

#screen-loader.hidden {
  display: none !important;
}

.homebtn-link,
a.homebtn-link,
a.homebtn.homebtn-link {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.3 !important;
  padding: 14px 16px !important;
  margin: 10px 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background: #f4c21b !important;
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.homebtn-link:hover,
a.homebtn-link:hover,
a.homebtn.homebtn-link:hover {
  background: #e5b117 !important;
  color: #000 !important;
  text-decoration: none !important;
}

.menu .homebtn-link {
  display: block !important;
  clear: both !important;
}

.btn-link,
a.btn-link,
a.btn.btn-link {
  display: inline-block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  text-align: center !important;
  line-height: 1.3 !important;
  padding: 14px 16px !important;
  margin: 10px 0 !important;
  border: none !important;
  border-radius: 12px !important;
  color: #000 !important;
}

.btn-link:hover,
a.btn-link:hover,
a.btn.btn-link:hover {
  text-decoration: none !important;
  color: #000 !important;
}

body.page-template-page-lid-trainer .site-header {
  margin: 0 auto 0 auto !important;
}

/* меню + язык */
.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.menu-head-main {
  flex: 1;
  min-width: 0;
}

.menu-lang-label {
  display: none;
}

.menu-lang-switcher {
  width: auto;
  max-width: none;
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 0;
}

.menu-lang-select {
  width: auto;
  max-width: 180px;
  padding: 8px 12px;
  border: 1px solid #d4e4e7;
  border-radius: 12px;
  background: #f6fbfb;
  font-weight: 700;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 860px) {
  .menu-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .menu-head-main {
    flex: 1;
    min-width: 0;
  }

  .menu-head-main p {
    margin-right: 8px;
  }

  .menu-lang-switcher {
    margin-left: auto;
    flex-shrink: 0;
    width: auto;
  }

  .menu-lang-select {
    max-width: 140px;
    padding: 7px 10px;
    font-size: 14px;
  }
}

.schema-faq.wp-block-yoast-faq-block,
.schema-faq.wp-block-yoast-faq-block * {
  text-align: left !important;
}