/* Reset and base styles  */
* {
 padding: 0px;
 margin: 0px;
 border: none;
 font-family: "Lato", sans-serif;
}

*,
*::before,
*::after {
 box-sizing: border-box;
}

/* Links */

a,
a:link,
a:visited {
 text-decoration: none;
}

a:hover {
 text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
 display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
 font-size: inherit;
 font-weight: inherit;
}

ul,
ul li {
 list-style: none;
}

img {
 vertical-align: top;
}

img,
svg {
 max-width: 100%;
 height: auto;
}

address {
 font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
 font-family: inherit;
 font-size: inherit;
 color: inherit;
 background-color: transparent;
}

input::-ms-clear {
 display: none;
}

button,
input[type="submit"] {
 display: inline-block;
 box-shadow: none;
 background-color: transparent;
 background: none;
 cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
 outline: none;
}

button::-moz-focus-inner {
 padding: 0;
 border: 0;
}

label {
 cursor: pointer;
}

legend {
 display: block;
}

.yellow {
 color: #ffe100;
}

html,
body {
 max-width: 100vw;
 width: 100%;
}

body {
 display: flex;
 min-height: 100vh;
 flex-direction: column;
}

.container {
 padding: 64px;
 flex: 1;
 background: url("../img/bg.png") center/cover no-repeat;
 display: flex;
 flex-direction: column;
 align-items: center;
}

.header {
 width: 100%;
 display: flex;
 flex-direction: column;
 align-items: center;

 gap: 20px;
}

.header-question {
 font-size: 32px;
 font-weight: 900;
 line-height: 38.4px;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;

 color: #fff;
}

.header-title {
 max-width: 808px;
 font-family: "Mazzard M";
 font-size: 32px;
 font-weight: 700;
 line-height: 37.82px;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;

 color: #fff;
}

.main {
 width: 100%;
 display: flex;
 justify-content: center;
}

.answer {
 margin-top: 36px;
 padding: 32px;
 max-width: 757px;
 width: 100%;
 display: flex;
 flex-direction: column;

 border-radius: 25px;
 position: relative;

 background: url("../img/bg-answer.png") center/cover no-repeat;
}

.answer-christmas {
 max-width: 160px;
 width: 100%;
 max-height: 160px;
 min-height: 160px;
 height: 100%;
 position: absolute;
 z-index: 1;
}

.answer-christmas__position__top-left {
 top: -32px;
 left: -32px;
}

.answer-christmas__position__top-right {
 top: -32px;
 right: -32px;
}

.answer-christmas__position__bottom-left {
 bottom: -32px;
 left: -32px;
 transform: rotate(-90deg);
}

.answer-christmas__position__bottom-right {
 bottom: -32px;
 right: -32px;
 transform: rotate(-180deg);
}

.answer-box {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

.answer-number {
 margin-bottom: 20px;
 padding: 5px 22px 0 22px;

 border: 2px solid #373737;
 border-radius: 4px;

 font-family: "Mazzard H";
 font-size: 16px;
 font-weight: 500;
 line-height: 22px;

 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;
}

.answer-title {
 margin-bottom: 32px;

 font-family: "Mazzard H";
 font-size: 18px;
 font-weight: 500;

 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;
}

.answer-input {
 margin-bottom: 12px;
 padding: 10px;
 width: 100%;

 border-radius: 6px;
 background: #dbd5c5;

 font-family: "Mazzard M";
 font-size: 18px;
 font-weight: 500;
 line-height: 30px;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;

 transition: all 0.3s ease-in-out;

 cursor: pointer;
}

.answer-input:hover {
 transition: all 0.3s ease-in-out;
 background: #fcb41f;
 color: #373737;

 transform: scale(1.02);
}

.answer-footer {
 width: 100%;
 display: flex;
 justify-content: flex-end;
 gap: 20px;
}

.answer-button__back {
 width: 44px;
 height: 44px;
 border: 1px solid #c6c6c6;
 border-radius: 3px;
 position: relative;
 cursor: pointer;
 transition: all 0.3s ease-in-out;
 box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
 transform: scale(1);
}

.answer-button__back:hover {
 transition: all 0.3s ease-in-out;
 box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
 transform: scale(1.1);
}

.answer-button__back img {
 width: 12px;

 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
}

.answer-button__next {
 padding: 10px 40px 6px 40px;

 background: #f3352f;

 border-radius: 6px;

 font-family: "Mazzard L";
 font-size: 20px;
 font-weight: 700;
 line-height: 30px;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;
 text-transform: uppercase;

 color: #fff;
}

.answer-form {
 max-width: 570px;
}

.answer-form .answer-title {
 color: #373737;
}

.answer-form__input {
 margin: 5px 0;
 padding: 10px 20px 8px 20px;
 width: 100%;

 background-color: #dbd5c5;
 border-radius: 6px;

 font-family: "Mazzard L";
 font-size: 20px;
 font-weight: 500;

 text-align: left;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;
}

.nachat {
 margin-top: 10px;
 font-family: "Mazzard L";
 font-size: 14px;
 font-weight: 500;
 line-height: 18px;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;
 color: #373737;
}

.answer-form__btn {
 margin-top: 20px;
 padding: 10px 40px;

 width: 100%;

 background: #f3352f;
 border-radius: 6px;

 font-family: "Mazzard L";
 font-size: 24px;
 font-weight: 700;
 text-align: center;
 text-underline-position: from-font;
 text-decoration-skip-ink: none;

 color: #fff;

 transition: all 0.3s ease-in-out;
 transform: scale(1);
 box-shadow: 0 0 0px rgba(243, 53, 47, 0);
}

.answer-form__btn:hover {
 transition: all 0.3s ease-in-out;
 transform: scale(1.05);
 box-shadow: 0 0 10px rgba(243, 53, 47, 1);
}

.answer-input input {
 width: 1;
 height: 1;
 opacity: 0;
 overflow: hidden;
}

@media screen and (max-width: 768px) {
 .container {
  padding: 32px 24px;
 }

 .header-logo {
  max-width: 124px;
 }

 .header-question {
  font-size: 21px;
 }

 .header-title {
  max-width: 100%;
  font-size: 21px;
  line-height: normal;
 }

 .answer {
  padding: 24px;
 }

 .answer-christmas {
  max-width: 120px;
  max-height: 120px;
  min-height: 120px;
 }

 .answer-christmas__position__top-left {
  top: -22px;
  left: -22px;
 }

 .answer-christmas__position__top-right {
  top: -22px;
  right: -22px;
 }

 .answer-christmas__position__bottom-left {
  bottom: -22px;
  left: -22px;
 }

 .answer-christmas__position__bottom-right {
  bottom: -22px;
  right: -22px;
 }

 .answer-title {
  margin-bottom: 10px;
 }

 .answer-form__input {
  font-size: 14px;
 }

 .nachat {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
 }

 .answer-form__btn {
  padding: 14px;
  width: 100%;
  font-size: 21px;
 }
}

@media screen and (max-width: 375px) {
 .container {
  padding: 32px 12px;
 }

 .answer-christmas {
  max-width: 100px;
  max-height: 100px;
  min-height: 100px;
 }
 .answer-christmas__position__top-left {
  top: -18px;
  left: -18px;
 }

 .answer-christmas__position__top-right {
  top: -18px;
  right: -18px;
 }

 .answer-christmas__position__bottom-left {
  bottom: -18px;
  left: -18px;
 }

 .answer-christmas__position__bottom-right {
  bottom: -18px;
  right: -18px;
 }
}

.d-none {
 display: none;
}

.quiz-wrapper__answer-active {
 transition: all 0.3s ease-in-out;
 background: #fcb41f;
 color: #373737;
}

.activeBack {
 border: 1px solid #000;
}

.activeBack img {
 fill: #000;
}

.answer-christmas-bg {
 position: absolute;
 width: 100%;
 height: 100%;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url("../img/bg-answer.png") no-repeat;
 background-size: 100% 100%;
}

.answer-box {
 z-index: 1;
}

.answer-footer {
 z-index: 1;
}

.section-form {
 background-color: #f6f1e3;
}
