:root {
  --yellow: #fdc708;
  --black: #111;
  --bg: #f2f3f5;
  --green: #118847;
  --red: #c62828;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: Montserrat, Arial, sans-serif;
  color: #111;
}
button,
input {
  font: inherit;
}
.hidden {
  display: none !important;
}
.top {
  background: #111;
  color: #fff;
  border-bottom: 5px solid var(--yellow);
  padding: 13px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
}
.brand small {
  display: block;
  font-weight: 500;
}
.langs {
  display: flex;
  gap: 7px;
}
.lang {
  border: 0;
  border-radius: 10px;
  background: #383838;
  color: #fff;
  padding: 10px 12px;
  font-weight: 800;
}
.lang.active {
  background: var(--yellow);
  color: #111;
}
.home {
  max-width: 1060px;
  margin: 28px auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 520px;
}
.hero {
  padding: 58px;
}
.eyebrow {
  font-weight: 900;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  margin: 18px 0;
}
.hero p {
  font-size: 18px;
  line-height: 1.45;
}
.side {
  background: var(--yellow);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sidebox {
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 24px;
}
.btn {
  border: 2px solid #111;
  border-radius: 13px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
}
.btn.dark {
  background: #111;
  color: var(--yellow);
}
.btn.yellow {
  background: var(--yellow);
  color: #111;
}
.btn.white {
  background: #fff;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.app {
  max-width: 1280px;
  margin: 24px auto;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
}
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}
.panel {
  border: 2px solid var(--yellow);
  border-radius: 18px;
  background: #fffdf1;
  padding: 15px;
  max-height: 650px;
  overflow: auto;
}
.search label {
  font-weight: 900;
}
.search input {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border: 2px solid #111;
  border-radius: 10px;
}
.search button {
  width: 100%;
}
.cat {
  margin-top: 15px;
  border-left: 5px solid;
  padding-left: 8px;
}
.cathead {
  display: flex;
  justify-content: space-between;
  background: #f7e7df;
  border-radius: 9px;
  padding: 8px;
  font-weight: 900;
  font-size: 12px;
}
.nums {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.num {
  border: 0;
  border-radius: 9px;
  padding: 10px 2px;
  font-weight: 800;
}
.num.active {
  background: #d32f2f;
  color: #fff;
  outline: 2px solid #111;
}
.content {
  padding: 4px 8px;
}
.content h2 {
  font-size: 25px;
  margin: 4px 0 14px;
}
.qmeta {
  font-weight: 800;
  color: #555;
  margin-bottom: 8px;
}
.qimg {
  display: block;
  max-width: 300px;
  max-height: 170px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.opts {
  display: grid;
  gap: 11px;
}
.opt {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  font-size: 17px;
}
.opt.selected {
  border-color: #111;
  background: #fff2b5;
}
.opt.correct {
  border-color: var(--green);
  background: #e5f7ec;
}
.opt.wrong {
  border-color: var(--red);
  background: #fdebea;
}
.feedback {
  margin-top: 14px;
  border-left: 6px solid;
  border-radius: 13px;
  padding: 15px 16px;
  line-height: 1.35;
}
.feedback.good {
  background: #e5f7ec;
  border-color: var(--green);
}
.feedback.bad {
  background: #fdebea;
  border-color: var(--red);
}
.feedback strong {
  display: block;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
.navleft {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.speaker {
  border: 0;
  background: #eee;
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 800;
}
@media (max-width: 820px) {
  .home {
    grid-template-columns: 1fr;
    margin: 14px;
  }
  .hero,
  .side {
    padding: 30px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .panel {
    max-height: 250px;
  }
  .app {
    margin: 10px;
  }
  .nums {
    grid-template-columns: repeat(6, 1fr);
  }
}
