body {
  background: #f5f5f5;
}
.kviz-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 60px 0;
}
.kviz-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 32px 32px 24px 32px;
  margin-bottom: 28px;
  font-family: "Monomakh", system-ui;
  font-size: 1.15em;
}

.kviz-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: "Molengo", system-ui;
}
.kviz-card input[type="radio"],
.kviz-card input[type="checkbox"] {
  accent-color: #b98b23;
  width: 18px;
  height: 18px;
}
.kviz-card input[type="text"] {
  width: 220px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  font-size: 1em;
  margin-top: 10px;
  font-family: "Molengo", system-ui;
}
.kviz-card textarea {
  width: 100%;
  min-height: 70px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 1em;
  padding: 10px;
  margin-top: 10px;
  resize: vertical;
  font-family: "Molengo", system-ui;
}
.kviz-btns {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: center;
}
.kviz-btns button {
  background: #b98b23;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 38px;
  font-size: 1.1em;
  font-family: "Molengo", system-ui;
  cursor: pointer;
  transition: background 0.2s;
}
.kviz-btns button:hover {
  background: #d4a63f;
}
.kviz-help {
  margin: 36px auto 0 auto;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 32px 32px 24px 32px;
  margin-bottom: 28px;
  font-family: "Monomakh", system-ui;
  font-size: 1.15em;
}

.kviz-help iframe,
.kviz-help img {
  background: #f5ecd7;
  border: 3px solid #b98b23;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  margin-top: 30px;
}
@media (max-width: 800px) {
  .kviz-main {
    padding: 20px 0 40px 0;
  }
  .kviz-card,
  .kviz-help {
    padding: 18px 10px 18px 10px;
  }
}

.kviz-card > div:first-child {
  margin-bottom: 24px !important;
}

button[type="reset"] {
  background-color: #84692c;
}

.overlay.show {
  z-index: 3;
}

.hero-kviz {
  width: 100%;
  height: 420px;
  background-image: url(../images/kviz-bg.png);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-kviz .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 60%,
    rgba(185, 139, 35, 0.7) 100%
  );
  z-index: 1;
}
.hero-kviz .content {
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding-top: 50px;
}
.hero-kviz h1 {
  font-family: "Monomakh", system-ui;
  font-size: 3.5em;
  font-weight: 400;
  margin-bottom: 20px;
}
.hero-kviz p {
  font-family: "Molengo", system-ui;
  font-size: 1.2em;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.hero-kviz .container {
  width: 1400px;
  max-width: 1400px;
  padding-top: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  position: relative;
  margin-top: -55px;
}
.hero-kviz .left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-kviz .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 70px 0 70px 0;
  position: relative;
}
.hero-kviz .right .nav-opener {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s;
  gap: 12px;
  z-index: 100;
  position: relative;
}
.hero-kviz .right .nav-opener.active {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-kviz .right .nav-opener img {
  width: 100%;
  transition: all 0.5s;
}
.hero-kviz .right .nav-opener.active img {
  position: absolute;
}
.hero-kviz .right .nav-opener.active img:nth-child(1) {
  transform: rotate(45deg);
}
.hero-kviz .right .nav-opener.active img:nth-child(2) {
  opacity: 0;
}
.hero-kviz .right .nav-opener.active img:nth-child(3) {
  transform: rotate(-45deg);
}
.hero-kviz .right nav {
  position: absolute;
  height: 550px;
  width: 450px;
  background: #1a1a1a;
  display: none;
  flex-direction: column;
  padding: 150px 0 0 40px;
  border-radius: 5px;
  transition: all 0.2s;
  margin: 0;
  margin-top: -10px;
  margin-right: -20px;
  z-index: 99;
}
.hero-kviz .right nav.show {
  display: flex;
}
.hero-kviz .right nav a {
  text-decoration: none;
  color: white;
  font-family: "Monomakh", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  margin-bottom: 30px;
}

.hero-kviz .right nav a.active {
  font-weight: 600;
}

.hero-kviz .right nav img {
  margin-bottom: 30px;
  width: 70%;
}

@media screen and (max-width: 768px) {
  .hero-kviz {
    height: 400px;
    min-height: auto;
    padding: 40px 0;
    padding-top: 0;
  }

  .hero-kviz .container {
    width: 100%;
    padding: 20px;
    flex-direction: column;
    height: auto;
    position: relative;
  }

  .hero-kviz .container .left {
    width: 100%;
    margin-bottom: 40px;
  }

  .hero-kviz .container .left img {
    height: auto;
    width: 20%;
    transform: rotate(90deg);
  }

  .hero-kviz .container .right {
    width: 100%;
    padding: 0;
    align-items: flex-end;
    margin-top: -200px;
  }

  .hero-kviz .container .right .nav-opener {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero-kviz .container .right .nav-opener.active {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero-kviz .container .right nav {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100vh;
    margin: 0;
    padding: 100px 40px;
    border-radius: 0;
    transition: right 0.3s ease-in-out;
  }

  .hero-kviz .container .right nav.show {
    right: 0;
  }

  .hero-kviz .container .right nav a {
    font-size: 2em;
  }

  .hero-kviz .container .right img[src*="sign.svg"] {
    display: none;
  }

  .hero-kviz .content {
    margin-top: 30px;
  }

  .hero-kviz .content h1 {
    font-size: 3em;
    margin-top: 30px;
  }

  .hero-kviz .content p {
    font-size: 1em;
  }
}
