body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #fff;
  scroll-behavior: smooth;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.2px;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
}
img {
  display: block;
}
a {
  margin-top: 0;
  margin-bottom: 0;
  text-decoration: none;
  padding-left: 0;
  font-style: normal;
}
ul {
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
  list-style-type: none;
  padding-left: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/*==========================================================*/
.header {
  background-color: #1d3e53;
  height: 50px;
  padding-top: 5px;
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 2px 1px 0px rgba(46, 47, 66, 0.08);
}
.conatainer {
  max-width: 1158px;
  padding: 0 15px 0 15px;
  margin-left: auto;
  margin-right: auto;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header_logo,
.header_score {
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}
.header_logo_it {
  color: #77abb7;
}
.header_score-wrap {
}
/*=========================Head================================*/
.zero-section {
  padding-top: 50px;
}
.zero-chapter-wrap {
}
.chapter-header {
  text-align: center;
  margin-bottom: 15px;
  color: #2e2f42;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
.section-wrap > p {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.2px;
  padding-bottom: 25px;
}
.section-wrap {
  width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.main-button {
  display: block;
  border: none;
  border-radius: 5px;
  width: 264px;
  height: 50px;
  margin: 25px auto;
  background-color: #467d7c;
  color: #f4f4fd;
  font-family: Roboto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transition: background-color 200ms ease-in-out;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}
.main-button:hover {
  background-color: #1d3e53;
}
.check-button {
  background-color: #0077cc;
}
.check-button:hover {
  background-color: #005288;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: #f4f4fd;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  position: sticky;
  top: -1px;
  background-color: #254b62;
  height: 46px;
  border-radius: 5px;
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}
.img {
  width: 100%;
  margin: 15px 0;
}
.code {
  background-color: #282a36;
  color: #f4f4fd;
  border-radius: 6px;
  /* text-align: c; */
  padding-top: 10px;
  padding-left: 25px;
}
.block-header {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
}
/*================================Тест-text===================================*/
.quiz-wrap {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  margin: 15px 0;
}
/* .quiz-wrap > div {
  margin-left: 200px;
} */
.test-button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  color: #fff;
  background-color: #007bff;
  /*border-color: #007bff;*/
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.quiz-input {
  width: 385px;
  padding: 10px;
  margin: 10px 0;
  line-height: 1.5;
  color: inherit;
  background-color: transparent;
  border: 2px solid #ced4da;
  border-radius: 4px;
  outline: transparent;

  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.quiz-input:hover,
.quiz-input:focus {
  border-color: #007bff;
}
.correct {
  border: 2px solid green;
}
.correct > p {
  color: green;
}

.incorrect {
  border: 2px solid red;
}
.incorrect > p {
  color: red;
}
/*=====================quiz-radio===============================*/
.test-wrap {
  display: flex;
  justify-content: center;
}
.quiz-form {
  width: 600px;
}
.quiz-wrap-set {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  padding: 4px;
  margin: 6px;
}
.quiz-wrap-set > p {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  padding: 10px 0;
}
.quiz-label {
  align-items: start;
  color: inherit;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.quiz-fieldset {
  border-top: none;
  border-left: none;
  border-radius: 10px;
  background-color: #f4f4fd6b;
}
/*=========================Modal===========================*/

.backdrop {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(46, 47, 66, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal {
  position: absolute;
  width: 408px;
  min-height: 584px;
  background-color: #fcfcfc;
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 66px 24px 24px 24px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
    0px 2px 1px rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn {
  padding: 0;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-btn:hover {
  border: none;
  background-color: #404bbf;
}
.modal-btn-icon {
  fill: #2e2f42;
  stroke: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-btn:hover .modal-btn-icon,
.modal-btn:focus .modal-btn-icon {
  fill: #ffffff;
}
.modal-text {
  font-family: "Roboto", serif;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.2px;
  text-align: center;
}
.score {
  font-size: 28px;
  line-height: 1.5;
  text-align: center;
  margin-top: 150px;
}

.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
