@charset "UTF-8";
body {
  background: #fdf6ed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Секцыя intro — фон празрысты */
.intro {
  padding-top: 25px;
  background: transparent;
}

.cover {
  width: 90%;
  max-width: 1400px;
  height: 700px;
  margin: 0 auto;
  background: rgba(252, 230, 183, 0.7019607843);
  border-radius: 50px;
  padding-top: 37px;
  position: relative;
}

.shool {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 100%;
  text-align: center;
  color: #3e1509;
}

.cornflower1 {
  position: absolute;
  bottom: 0;
  left: 0;
}

.cornflower2 {
  position: absolute;
  bottom: 0;
  right: 0;
}

.cornflowers_and_text {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 91px;
}

.complecs_button {
  text-align: center;
}

.umk {
  font-family: "Cormorant SC", serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: #5f2d1e;
  width: 692px;
  margin: 0 auto;
  margin-top: 100px;
}

.begin {
  width: 314px;
  font-family: "Cormorant SC", serif;
  font-size: 35px;
  font-weight: 700;
  text-align: center;
  color: #5f2d1e;
  background: #E6EBF5;
  border: 3px solid #5F2D1E;
  border-radius: 50px;
  padding: 25px 72px;
  margin-top: 40px;
  cursor: pointer;
}

.begin:hover {
  background: #5F2D1E;
  color: #E6EBF5;
  transition: all 0.3s;
}


.info-section {
  padding: 50px 20px;
  background: transparent;
}

.info-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 40px;
  padding: 50px 60px;
  box-shadow: 0 10px 30px rgba(94, 45, 30, 0.1);
  border-left: 6px solid #5f2d1e;
  position: relative;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


.info-herb {
  flex-shrink: 0;
  width: 140px;
  height: auto;
  margin-top: 10px;
}

.info-herb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(94, 45, 30, 0.15);
}

.info-content {
  flex: 1;
}

.info-title {
  font-family: "Cormorant SC", serif;
  font-size: 38px;
  font-weight: 700;
  color: #5f2d1e;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.info-title span {
  display: inline-block;
  background: #e6ebf5;
  padding: 0 18px;
  border-radius: 12px;
}

.info-text {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: #3e1509;
  text-align: justify;
}

.info-text strong {
  color: #5f2d1e;
  font-weight: 600;
}


.footer {
  background: transparent;
  padding: 30px 20px 25px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 2px solid #d4c5b0;
}

.footer-text {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #3e1509;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-text strong {
  color: #5f2d1e;
  font-weight: 600;
}

.footer-copy {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #7a5a4a;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-top: 5px;
}



@media (max-width: 992px) {
  .intro {
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .cover {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    padding: 20px 20px 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .cover .shool {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .cornflower1,
  .cornflower2 {
    display: none;
  }

  .umk {
    font-size: 38px;
    width: auto;
    margin-top: 0;
  }

  .begin {
    width: 260px;
    font-size: 38px;
    padding: 20px 40px;
  }

  .info-container {
    flex-direction: column;
    align-items: center;
    padding: 35px 30px;
  }

  .info-herb {
    width: 110px;
    margin-top: 0;
    order: -1;
    margin-bottom: 15px;
  }

  .info-title {
    font-size: 32px;
    text-align: center;
  }

  .info-text {
    font-size: 18px;
  }
}


@media (max-width: 768px) {
  .intro {
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .cover {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 15px 15px 30px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .cover .shool {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    padding: 0 10px;
  }

  .umk {
    font-size: 32px;
    margin-top: 0;
  }

  .begin {
    width: 220px;
    font-size: 32px;
    padding: 15px 30px;
    margin-top: 30px;
  }


  .info-section {
    padding: 30px 15px;
  }

  .info-container {
    padding: 25px 20px;
    border-radius: 30px;
    flex-direction: column;
    align-items: center;
  }

  .info-herb {
    width: 90px;
    order: -1;
    margin-bottom: 12px;
  }

  .info-title {
    font-size: 26px;
    text-align: center;
  }

  .info-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }


  .footer {
    padding: 20px 15px 20px;
  }

  .footer-text {
    font-size: 15px;
  }

  .footer-copy {
    font-size: 14px;
  }
}


@media (max-width: 480px) {
  .cover {
    padding: 10px 10px 20px;
  }

  .cover .shool {
    top: 10px;
    font-size: 14px;
  }

  .umk {
    font-size: 26px;
  }

  .begin {
    width: 200px;
    font-size: 26px;
    padding: 12px 20px;
  }

  .info-container {
    padding: 20px 15px;
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
  }

  .info-herb {
    width: 75px;
    order: -1;
    margin-bottom: 10px;
  }

  .info-title {
    font-size: 22px;
  }

  .info-text {
    font-size: 15px;
  }

  .footer-text {
    font-size: 13px;
  }

  .footer-copy {
    font-size: 12px;
  }
}
.footer-link {
  color: #5f2d1e;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: #9b3b2f;
  border-bottom: 1px solid #9b3b2f;
  text-decoration: none;
}

.footer-link:focus {
  outline: 2px solid #5f2d1e;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .footer-link {
    display: inline-block;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .footer-link {
    font-size: 13px;
  }
}
.forma_authorization {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: rgba(252, 230, 183, 0.768627451);
  padding: 20px;
}

.forma {
  max-width: 634px;
  width: 100%;
  background: #dff1fe;
  border-radius: 116px;
  border: 3px solid #5f2d1e;
  padding: 72px 60px 62px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 45px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.forma:hover {
  transform: translateY(-5px);
}

.title_forma {
  font-family: "Cormorant SC", sans-serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #5F2D1E;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.inputs {
  display: flex;
  flex-direction: column;
  gap: 45px;
  width: 100%;
}

.input_log_pas {
  width: 100%;
  background: #f9fdff;
  border: 3px solid #5f2d1e;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 100%;
  text-align: left;
  border-radius: 50px;
  color: #5F2D1E;
  padding: 20px 5px 27px 25px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.input_log_pas:focus {
  outline: none;
  border-color: #9B3B2F;
  box-shadow: 0 0 0 3px rgba(155, 59, 47, 0.2);
  background: #ffffff;
}

.input_log_pas::-moz-placeholder {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 23px;
  font-weight: 500;
  color: #3e1509;
  opacity: 0.6;
}

.input_log_pas::placeholder {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 23px;
  font-weight: 500;
  color: #3e1509;
  opacity: 0.6;
}

.log_in {
  width: 353px;
  font-family: "Cormorant SC", serif;
  font-size: 45px;
  font-weight: 700;
  text-align: center;
  color: #5f2d1e;
  background: #B1D8FF;
  border: 3px solid #5F2D1E;
  border-radius: 50px;
  padding: 25px 72px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.log_in:hover {
  background: #5F2D1E;
  color: #B1D8FF;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(95, 45, 30, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
  .forma {
    padding: 40px 30px;
    border-radius: 60px;
  }
  .title_forma {
    font-size: 32px;
    word-wrap: break-word;
    word-break: break-word;
  }
  .log_in {
    width: 100%;
    font-size: 32px;
    padding: 20px;
  }
  .input_log_pas {
    font-size: 18px;
    padding: 15px 5px 18px 20px;
  }
  .input_log_pas::-moz-placeholder {
    font-size: 18px;
  }
  .input_log_pas::placeholder {
    font-size: 18px;
  }
}
.sections {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: rgba(252, 230, 183, 0.768627451);
  padding: 20px;
}

.parts_exit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 80px;
}

.title_section {
  font-family: "Cormorant SC", sans-serif;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #5f2d1e;
  flex: 1;
  margin: 0;
}

.exit {
  font-family: "Cormorant SC", serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #5f2d1e;
  background: #b1d8ff;
  border: 3px solid #5f2d1e;
  padding: 8px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 160px;
}

.exit:hover {
  background: #5f2d1e;
  color: #b1d8ff;
  transform: scale(1.05);
}

.exit-placeholder {
  width: 160px;
  visibility: hidden;
}

.parts {
  display: flex;
  margin-top: 95px;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.card,
.card2 {
  background: #dff1fe;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  font-family: "Montserrat Alternates", serif;
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 500;
  text-align: center;
  color: #5f2d1e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0 41px 98px 41px;
  justify-content: space-between;
}

.card2 {
  display: flex;
  flex-direction: column;
  padding: 41px 54px 0 54px;
  position: relative;
  justify-content: space-between;
  overflow: hidden;
}

.card:hover,
.card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Изображения */
.img_teory img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.card:hover .img_teory img,
.card2:hover .img_teory img {
  transform: scale(1.05);
}

.pen {
  position: absolute;
  top: 345px;
  left: 2px;
  transition: transform 0.3s ease;
  max-width: 85%;
  height: auto;
  z-index: 2;
}

.card2:hover .pen {
  transform: translateX(-50%) rotate(10deg);
}

.run,
.run2 {
  width: 320px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 47px);
  border-radius: 50px;
  background: #f9fdff;
  border: 3px solid #5f2d1e;
  font-family: "Cormorant SC", serif;
  font-size: clamp(18px, 5vw, 27px);
  font-weight: 700;
  padding: 13px 20px;
  color: #5f2d1e;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.run {
  margin-top: 56px;
}

.run2 {
  margin-top: 60px;
  margin-bottom: 274px;
}

.run:hover,
.run2:hover {
  background: #5f2d1e;
  color: #f9fdff;
}

.Arrow {
  width: clamp(45px, 4vw, 32px);
  height: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.run:hover .Arrow,
.run2:hover .Arrow {
  filter: brightness(0) invert(1);
  transform: translateX(5px);
}

@media (max-width: 1200px) {
  .parts {
    gap: 20px;
  }
}
@media (max-width: 992px) {
  .card,
  .card2 {
    max-width: 380px;
  }
}
@media (max-width: 768px) {
  .parts_exit {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
  }
  .exit-placeholder {
    display: none;
  }
  .exit {
    width: 100%;
    max-width: 300px;
  }
  .parts {
    flex-direction: column;
    align-items: center;
  }
  .card,
  .card2 {
    width: 100%;
    max-width: 460px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .pen {
    top: 255px;
    max-width: 80%;
  }
  .run2 {
    margin-bottom: 180px;
  }
}
@media (max-width: 480px) {
  .sections {
    padding: 15px;
  }
  .card,
  .card2 {
    border-radius: 20px;
  }
  .card {
    padding: 0 25px 80px 25px;
  }
  .card2 {
    padding: 35px 30px 0 30px;
  }
  .pen {
    top: 225px;
    max-width: 75%;
  }
  .run,
  .run2 {
    padding: 13px 45px 13px 25px;
  }
}
.classes {
  display: flex;
  background: rgba(252, 230, 183, 0.768627451);
  padding: 20px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.list_classes {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.part1,
.part2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.but_class {
  font-family: "Cormorant SC", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #5f2d1e;
  padding: 30px 0;
  width: 619px;
  background: #dfedfe;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.but_class:hover {
  background: #5f2d1e;
  color: #dfedfe;
  transform: translateY(-5px);
}

.back {
  width: 188px;
  height: 109px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  margin-bottom: auto;
}

.back2 {
  display: none;
  width: 188px;
  height: 109px;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow_back {
  width: 50px;
  height: auto;
  display: block;
}

.back:hover,
.back2:hover {
  background: #5f2d1e;
  transform: scale(1.02);
}

@media (max-width: 1356px) {
  .back2 {
    display: flex;
    width: 300px;
    font-size: 48px;
    padding: 35px 0;
  }
  .back2 {
    display: flex;
    height: 90px;
  }
  .back {
    display: none;
  }
  .list_classes {
    gap: 15px;
  }
}
@media (max-width: 792px) {
  .but_class,
  .back2 {
    display: flex;
    width: 300px;
    font-size: 48px;
    padding: 35px 0;
    justify-content: center;
  }
  .back2 {
    display: flex;
    height: 90px;
  }
  .back {
    display: none;
  }
  .list_classes {
    gap: 0;
  }
}
@media (max-width: 768px) {
  .list_classes {
    flex-direction: column;
    align-items: center;
  }
  .back2 {
    display: flex;
  }
  .but_class,
  .back,
  .back2 {
    width: 280px;
    font-size: 40px;
    justify-content: center;
  }
  .back {
    display: none;
  }
}
.topics {
  display: flex;
  min-height: 100vh;
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
}

.topics_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
  position: relative;
}

.back_btn {
  width: clamp(70px, 12vw, 170px);
  height: clamp(50px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: clamp(20px, 3vw, 32px);
}

.back_btn:hover {
  background: #5f2d1e;
  color: #b1d8ff;
  transform: scale(1.02);
}

.back-arrow {
  width: 50px;
  height: auto;
}

.block_title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant SC", sans-serif;
  font-size: clamp(24px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #5f2d1e;
  padding: 30px 20px;
  width: 619px;
  min-width: 200px;
  max-width: 90vw;
  background: #dfedfe;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  white-space: nowrap;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.topics_title {
  font-family: "Cormorant SC", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #5f2d1e;
}

.add-topic-btn {
  width: clamp(70px, 12vw, 170px);
  height: clamp(50px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  font-size: clamp(14px, 2.5vw, 24px);
}

.add-topic-btn:hover {
  background: #5f2d1e;
  color: #b1d8ff;
  transform: scale(1.02);
}

.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #dff1fe;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  padding: 20px 30px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.topic-info {
  flex: 1;
}

.topic-title {
  font-family: "Montserrat Alternates", serif;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 600;
  color: #5f2d1e;
  margin-bottom: 8px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.topic-actions {
  display: flex;
  gap: 15px;
}

.topic-btn {
  font-family: "Cormorant SC", serif;
  font-size: clamp(12px, 2.5vw, 18px);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #5f2d1e;
}

.theory-btn {
  background: #f9fdff;
  color: #5f2d1e;
}

.theory-btn:hover {
  background: #5f2d1e;
  color: #f9fdff;
}

.test-btn {
  background: #b1d8ff;
  color: #5f2d1e;
}

.test-btn:hover {
  background: #5f2d1e;
  color: #b1d8ff;
}

.edit-btn,
.delete-btn {
  background: transparent;
  font-size: 20px;
  padding: 8px 16px;
}

.edit-btn:hover {
  background: #5f2d1e;
  color: #f9fdff;
}

.delete-btn:hover {
  background: #ff4444;
  border-color: #ff4444;
  color: white;
}

.topics_list {
  display: flex;
  gap: 48px;
  flex-direction: column;
}

.topic_block_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.topic_block {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  padding: 20px 25px;
  border-radius: 10px;
  background: #f0f7ff;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 4px solid #5f2d1e;
  color: #551f0f;
  flex: 1;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.topic_block:hover {
  background: #5f2d1e;
  color: #f0f7ff;
  transform: translateY(-3px);
}

.topic_actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.topic_icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
}

.topic_icon:hover {
  transform: scale(1.1);
}

.topic_icon.edit:hover {
  background: #5f2d1e;
  color: #f9fdff;
}

.topic_icon.delete:hover {
  background: #ff4444;
  border-color: #ff4444;
  color: white;
}

.topic_icon.complete:hover {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  font-family: "Cormorant SC", serif;
  font-size: 32px;
  color: #5f2d1e;
  margin-bottom: 20px;
}

.warning-text {
  color: #ff4444;
  font-size: 14px;
  margin: 15px 0;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 25px;
  border-radius: 50px;
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.confirm {
  background: #ff4444;
  color: white;
}

.cancel {
  background: #b1d8ff;
  color: #5f2d1e;
}

@media (max-width: 1200px) {
  .block_title {
    width: 450px;
    font-size: 48px;
    padding: 20px 0;
  }
  .back_btn {
    width: 130px;
    height: 80px;
  }
  .add-topic-btn {
    width: 130px;
    height: 80px;
    font-size: 20px;
  }
  .topic-title {
    font-size: 24px;
  }
  .topic-description {
    font-size: 14px;
  }
  .topic-btn {
    font-size: 16px;
    padding: 8px 16px;
  }
}
@media (max-width: 992px) {
  .block_title {
    width: 350px;
    font-size: 36px;
    padding: 15px 0;
  }
  .back_btn {
    width: 100px;
    height: 70px;
  }
  .add-topic-btn {
    width: 100px;
    height: 70px;
    font-size: 16px;
  }
  .back-arrow {
    width: 35px;
  }
  .topic-card {
    padding: 15px 20px;
  }
  .topic-title {
    font-size: 22px;
  }
  .topic-actions {
    gap: 10px;
  }
  .topic-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
  .edit-btn,
  .delete-btn {
    font-size: 16px;
    padding: 6px 12px;
  }
}
@media (max-width: 768px) {
  .topics {
    padding: 20px 15px;
  }
  .topic_icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .topic_block {
    padding: 15px 20px;
    font-size: clamp(18px, 4vw, 28px);
  }
  .topics_header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    min-height: auto;
  }
  .block_title {
    position: static;
    transform: none;
    width: auto;
    white-space: normal;
    padding: 15px 10px;
    font-size: clamp(20px, 5vw, 32px);
    margin: 0 auto;
  }
  .back_btn {
    width: 80px;
    height: 60px;
    order: 0;
  }
  .add-topic-btn {
    width: 80px;
    height: 60px;
    font-size: 12px;
    order: 2;
    margin-left: 0;
    white-space: normal;
    text-align: center;
  }
  .back-arrow {
    width: 28px;
  }
  .topic-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 12px;
  }
  .topic-info {
    width: 100%;
  }
  .topic-title {
    font-size: 20px;
  }
  .topic-description {
    font-size: 13px;
  }
  .topic-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topic-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .edit-btn,
  .delete-btn {
    font-size: 14px;
    padding: 8px 14px;
  }
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  .modal-content h3 {
    font-size: 24px;
  }
  .modal-btn {
    padding: 8px 20px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .topics {
    padding: 15px 10px;
  }
  .topic_icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .topic_actions {
    gap: 6px;
  }
  .block_title {
    font-size: 22px;
    max-width: 280px;
    padding: 10px 0;
  }
  .back_btn {
    width: 60px;
    height: 50px;
  }
  .add-topic-btn {
    width: 60px;
    height: 50px;
    font-size: 10px;
  }
  .back-arrow {
    width: 22px;
  }
  .topic-title {
    font-size: 18px;
  }
  .topic-description {
    font-size: 12px;
  }
  .topic-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .topic-card {
    padding: 12px;
  }
}
/* ===== СТАРОНКА ПРАГЛЯДУ КАНСПЕКТА ===== */
/* Хедэр */
.topics_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 10px;
  position: relative;
  min-width: 0;
  width: 100%;
}

.topics_header .placeholder_btn {
  flex-shrink: 0;
  width: clamp(50px, 10vw, 80px);
  height: clamp(40px, 7vw, 60px);
  visibility: hidden;
}


.block_title {
  flex: 1;
  text-align: center;
  min-width: 0;
  padding: 0 5px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.topics_title {
  font-family: "Cormorant SC", serif;
  font-size: clamp(18px, 3.5vw, 36px);
  font-weight: 700;
  color: #5f2d1e;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}


.text_teory_wrapper {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  color: #3e1509;
  padding: 40px 30px;
  max-width: 1290px;
  width: 100%;
  margin: 20px auto;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
  border-radius: 24px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.text_teory_wrapper h1,
.text_teory_wrapper h2,
.text_teory_wrapper h3 {
  font-family: "Cormorant SC", serif;
  color: #5f2d1e;
  margin: 25px 0 15px 0;
  text-align: left;
}

.text_teory_wrapper h2 {
  font-size: 28px;
}

.text_teory_wrapper h3 {
  font-size: 24px;
}

.text_teory_wrapper p {
  margin-bottom: 15px;
  text-indent: 30px;
}

.text_teory_wrapper ul,
.text_teory_wrapper ol {
  margin: 15px 0 15px 30px;
  text-align: left;
}

.text_teory_wrapper li {
  margin-bottom: 8px;
}

.text_teory_wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

.text_teory_wrapper table td,
.text_teory_wrapper table th {
  border: 2px solid #5f2d1e;
  padding: 12px 15px;
  text-align: left;
}

.text_teory_wrapper table th {
  background: #5f2d1e;
  color: #ffffff;
  font-weight: 600;
  font-family: "Cormorant SC", serif;
  font-size: 18px;
}

.text_teory_wrapper table tr:nth-child(even) {
  background: #f0f7ff;
}

.text_teory_wrapper table tr:hover {
  background: #e8f0fe;
}


.text_teory_wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dop_matirial {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: #5f2d1e;
  padding: 30px;
  max-width: 1290px;
  width: 100%;
  margin: 0 auto 44px;
  background: #dff1fe;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.title_dop_material {
  font-family: "Cormorant SC", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.dop_matirial a {
  color: #5f2d1e;
  text-decoration: none;
  transition: color 0.3s;
}

.dop_matirial a:hover {
  color: #9b3b2f;
  text-decoration: underline;
}


.start_test {
  width: 553px;
  font-family: "Cormorant SC", serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: #5f2d1e;
  background: #e6ebf5;
  border: 3px solid #5f2d1e;
  border-radius: 50px;
  padding: 17px 57px;
  margin-top: 70px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.arrow_test {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

.start_test:hover {
  background: #5f2d1e;
  color: #e6ebf5;
}

.start_test:hover .arrow_test {
  filter: brightness(0) invert(1);
  transform: translateX(5px);
}


@media (min-width: 764px) and (max-width: 1185px) {
  .topics_header {
    gap: 5px;
  }
  .topics_header .back_btn {
    width: clamp(40px, 8vw, 60px);
    height: clamp(35px, 6vw, 50px);
  }
  .topics_header .placeholder_btn {
    width: clamp(40px, 8vw, 60px);
    height: clamp(35px, 6vw, 50px);
  }
  .topics_title {
    font-size: clamp(16px, 3vw, 28px);
    -webkit-line-clamp: 4;
  }
  .block_title {
    padding: 0 3px;
  }
}
@media (max-width: 768px) {
    .text_teory_wrapper {
        font-size: 16px;
        padding: 20px 15px;
        width: 95%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .text_teory_wrapper img {
        max-width: 100% !important;
        height: auto !important;
        margin: 10px auto;
    }
    
    .text_teory_wrapper table {
        font-size: 14px;
    }
    
    .text_teory_wrapper table td,
    .text_teory_wrapper table th {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .text_teory_wrapper {
        font-size: 15px;
        padding: 15px 10px;
    }
    
    .text_teory_wrapper img {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
  .text_teory_wrapper {
    font-size: 16px;
    padding: 25px 15px;
    width: 95%;
  }
  .text_teory_wrapper h2 {
    font-size: 24px;
  }
  .dop_matirial {
    font-size: 18px;
    padding: 25px 15px;
    width: 95%;
  }
  .start_test {
    width: 90%;
    font-size: clamp(28px, 5vw, 48px);
    padding: 15px 30px;
    gap: 15px;
  }
  .arrow_test {
    width: 40px;
  }
  .text_teory_wrapper table {
    font-size: 14px;
  }
  .text_teory_wrapper table td,
  .text_teory_wrapper table th {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .topics_header {
    gap: 3px;
  }
  .topics_header .back_btn {
    width: 40px;
    height: 35px;
  }
  .topics_header .placeholder_btn {
    width: 40px;
    height: 35px;
  }
  .topics_title {
    font-size: clamp(14px, 4vw, 22px);
    -webkit-line-clamp: 5;
    line-height: 1.1;
  }
  .block_title {
    padding: 0 2px;
  }
  .text_teory_wrapper {
    font-size: 15px;
    padding: 20px 12px;
  }
}

.forma_teory {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

.forma_teory_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
  position: relative;
}

.forma_teory_wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #f0f7ff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.title_teory,
.class_forma,
.content_zmest,
.dop_content_forma {
  margin-bottom: 30px;
}

.title_forma_teory {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  color: #5f2d1e;
  width: 100%;
  margin-bottom: 15px;
}

.input_title {
  width: 100%;
  padding: 15px 20px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 500;
  color: #5f2d1e;
  border: 3px solid #5f2d1e;
  border-radius: 16px;
  background: #f9fdff;
  box-sizing: border-box;
}

.input_title:focus {
  outline: none;
  border-color: #9b3b2f;
  box-shadow: 0 0 0 3px rgba(155, 59, 47, 0.2);
}


.class_forma {
  position: relative;
  margin-bottom: 30px;
}

select {
  width: 100%;
  padding: 15px 50px 15px 20px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 500;
  color: #5f2d1e;
  background: #f9fdff;
  border: 3px solid #5f2d1e;
  border-radius: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.class_forma::after {
  content: "▼";
  font-size: 14px;
  color: #5f2d1e;
  position: absolute;
  right: 20px;
  top: 75%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #9B3B2F;
  box-shadow: 0 0 0 3px rgba(155, 59, 47, 0.2);
}

select option {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  color: #5f2d1e;
  background: #f9fdff;
  padding: 10px;
}

select option:hover {
  background: #5f2d1e;
  color: #f9fdff;
}


.content_zmest {
  margin-bottom: 30px;
}

.ck-editor__editable {
  min-height: 300px;
}


.forma_dop_material {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f9fdff;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  padding: 47px 32px;
  margin-bottom: 30px;
}

.add_fail,
.add_link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 180px;
  padding: 12px 24px;
  font-family: "Cormorant SC", serif;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 700;
  color: #B1D8FF;
  background: #5F2D1E;
  border: 3px solid #B1D8FF;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add_fail:hover,
.add_link:hover {
  background: #602413;
  color: #ffffff;
  transform: scale(1.02);
}

.add_fail:hover img,
.add_link:hover img {
  filter: brightness(0) invert(1);
}

.plus_file {
  width: 20px;
  height: 20px;
}

/* Привязка к тесту */
.test-link-group {
  margin-top: 20px;
}

.test-link-group label {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  color: #5f2d1e;
  display: block;
  margin-bottom: 15px;
}

.test-link-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.form-select {
  flex: 1;
  padding: 12px 20px;
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  border: 3px solid #5f2d1e;
  border-radius: 50px;
  background: #f9fdff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:hover {
  border-color: #9B3B2F;
}

.btn-test-link {
  padding: 12px 24px;
  font-family: "Cormorant SC", serif;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
  color: #5f2d1e;
  background: #b1d8ff;
  border: 3px solid #5f2d1e;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-test-link:hover {
  background: #5f2d1e;
  color: #b8d8f8;
  transform: scale(1.02);
}

.form-hint {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(12px, 2vw, 14px);
  color: #3e1509;
  opacity: 0.7;
  margin-top: 10px;
}

.save_btn_wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.save_conspect_btn {
  padding: 15px 40px;
  font-family: "Cormorant SC", serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: #B1D8FF;
  background: #5F2D1E;
  border: 3px solid #B1D8FF;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save_conspect_btn:hover {
  background: #692512;
  transform: scale(1.02);
}

/* Hover для select */
select:hover {
  border-color: #9B3B2F;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .forma_teory_wrapper {
    padding: 20px;
  }
  .title_forma_teory {
    font-size: clamp(20px, 4vw, 24px);
  }
  .test-link-group label {
    font-size: clamp(20px, 4vw, 24px);
  }
  .test-link-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-test-link {
    text-align: center;
    width: 100%;
  }
  .form-select {
    width: 100%;
  }
  .add_fail,
  .add_link {
    width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: clamp(14px, 3vw, 16px);
    min-width: auto;
  }
  .save_conspect_btn {
    width: 100%;
    font-size: clamp(18px, 4vw, 22px);
    padding: 12px 20px;
  }
  .form-hint {
    font-size: clamp(11px, 2.5vw, 12px);
  }
  select {
    font-size: clamp(14px, 3vw, 16px);
  }
  .input_title {
    font-size: clamp(14px, 3vw, 16px);
  }
}
@media (max-width: 480px) {
  .forma_dop_material {
    padding: 30px 20px;
  }
  .add_fail,
  .add_link {
    padding: 10px 16px;
    font-size: clamp(12px, 3vw, 14px);
  }
  .plus_file {
    width: 16px;
    height: 16px;
  }
  .btn-test-link {
    font-size: clamp(12px, 2.5vw, 14px);
    padding: 10px 16px;
  }
  .save_conspect_btn {
    font-size: clamp(16px, 4vw, 20px);
    padding: 10px 16px;
  }
}

.topic_block_wrapper2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: all 0.3s ease;
}

.topic_block_wrapper2:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.topic_block2 {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  color: #5e210e;
  flex: 1;
  text-align: left;
  background: #f0f7ff;
  border: 4px solid #5f2d1e;
  border-radius: 10px;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Кнопка "Пачаць тэст" */
.start_test2 {
  font-family: "Cormorant SC", serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: #5f2d1e;
  background: #e6ebf5;
  border: 2px solid #5f2d1e;
  border-radius: 50px;
  padding: 6px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.start_test2:hover {
  background: #5f2d1e;
  color: #e6ebf5;
  transform: scale(1.02);
}

.start_test2:hover .arrow_test2 {
  filter: brightness(0) invert(1);
  transform: translateX(4px);
}

.arrow_test2 {
  width: clamp(19px, 8vw, 52px);
  height: auto;
  transition: transform 0.3s ease;
}


.topic_actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.topic_icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
}

.topic_icon:hover {
  transform: scale(1.1);
}

.topic_icon.edit:hover {
  background: #5f2d1e;
  color: #f9fdff;
}

.topic_icon.delete:hover {
  background: #ff4444;
  color: white;
}


@media (max-width: 768px) {
  .topic_block_wrapper2 {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .topic_block2 {
    justify-content: space-between;
    width: 100%;
  }
  .topic_actions {
    justify-content: center;
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .topic_block2 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .start_test2 {
    justify-content: center;
    width: 100%;
  }
}

.add-test {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

.add-test_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
  position: relative;
}

.add-test_title {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  color: #5f2d1e;
  margin: 0;
}

.placeholder_btn {
  width: clamp(70px, 12vw, 170px);
  height: clamp(50px, 8vw, 100px);
  flex-shrink: 0;
  visibility: hidden;
}

.add-test_form {
  max-width: 900px;
  margin: 0 auto;
  background: #f0f7ff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form_field {
  margin-bottom: 25px;
}

.form_row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.form_field.half {
  flex: 1;
  margin-bottom: 0;
}

.form_label {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: #5f2d1e;
  display: block;
  margin-bottom: 10px;
}

.form_input,
.form_select {
  width: 100%;
  padding: 12px 18px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3e1509;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
  border-radius: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.form_input:focus,
.form_select:focus {
  outline: none;
  border-color: #9b3b2f;
  box-shadow: 0 0 0 3px rgba(155, 59, 47, 0.2);
}


.questions_section {
  margin-top: 30px;
  padding-top: 20px;
}

.questions_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.add_question_btn {
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 20px;
  background: #5F2D1E;
  color: #B1D8FF;
  border: 2px solid #B1D8FF;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add_question_btn:hover {
  background: #883a25;
  transform: scale(1.02);
}


.question_card {
  background: #f9fdff;
  border: 2px solid #5f2d1e;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
   overflow: hidden;  
  min-width: 0;
}

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

.question_title {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #5f2d1e;
}

.remove_question_btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat Alternates", sans-serif;
}

.remove_question_btn:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.question_text {
  width: 100%;
  padding: 12px 15px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #5f2d1e;
  border-radius: 12px;
  margin-bottom: 15px;
  box-sizing: border-box;
  background: #ffffff;
}


.question_type {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.question_type label {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5f2d1e;
}

.type_radio {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}


.answers_container {
  margin: 15px 0;
  padding-left: 20px;
}

.answer_row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  background: #f9fdff;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #d4c9b6;
   min-width: 0;       
  overflow: hidden; 
}


.answer_input {
  flex: 1;
  padding: 8px 12px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #5f2d1e;
  border-radius: 12px;
  background: #ffffff;
   min-width: 0;       
  max-width: 100%;    
  box-sizing: border-box; 
}


.answer_row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5f2d1e;
  cursor: pointer;
  white-space: nowrap;
}


.correct_checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4caf50;
  margin: 0;
}


.remove_answer_btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.remove_answer_btn:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.add_answer_btn {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: #E6EBF5;
  border: 1px solid #5f2d1e;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 5px;
}

.text-answer-hint {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}


.form_actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.save_btn {
  padding: 12px 40px;
  font-family: "Cormorant SC", serif;
  font-size: 28px;
  font-weight: 700;
  color: #B1D8FF;
  background: #5F2D1E;
  border: 3px solid #B1D8FF;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save_btn:hover {
  background: #883a25;
  transform: scale(1.02);
}

.text_answer_container {
  margin: 15px 0;
  padding-left: 20px;
}

.text_correct_answer {
  width: 100%;
  padding: 12px 18px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3e1509;
  background: #ffffff;
  border: 2px solid #5f2d1e;
  border-radius: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.text_correct_answer:focus {
  outline: none;
  border-color: #9b3b2f;
  box-shadow: 0 0 0 3px rgba(155, 59, 47, 0.2);
}

.text_correct_answer::-moz-placeholder {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  opacity: 0.8;
}

.text_correct_answer::placeholder {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  opacity: 0.8;
}


@media (max-width: 768px) {
  .add-test_form {
    padding: 20px;
  }
  .form_row {
    flex-direction: column;
    gap: 25px;
  }
  .form_field.half {
    margin-bottom: 0;
  }
  .questions_header {
    flex-direction: column;
    align-items: stretch;
  }
  .add_question_btn {
    width: 100%;
    text-align: center;
  }
  .save_btn {
    width: 100%;
    font-size: 22px;
    padding: 10px 20px;
  }
  .question_type {
    gap: 10px;
  }
}

.test-student {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

/* Хедер тэста */
.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.test-info-header {
  flex: 1;
  text-align: center;
}

.test-title-header {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #5f2d1e;
  margin-bottom: 8px;
}

.test-meta-header {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.test-meta-header span {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5f2d1e;
  opacity: 0.8;
}

.placeholder_header {
  width: 70px;
  visibility: hidden;
}


.test-progress {
  background: #f0f7ff;
  border: 2px solid #5f2d1e;
  border-radius: 50px;
  padding: 12px 25px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.progress-bar {
  flex: 2;
  height: 8px;
  background: #d4c9b6;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #8B5E3C;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5f2d1e;
}

.timer {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #5f2d1e;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid #5f2d1e;
}


.test-questions {
  margin-bottom: 30px;
}

.question-card {
  display: none;
  background: #f0f7ff;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  padding: 30px;
}

.question-card.active {
  display: block;
}

.question-text {
  font-family: "Cormorant SC", serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #5f2d1e;
  margin-bottom: 25px;
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #5f2d1e;
  cursor: pointer;
  padding: 10px 15px;
  background: #f9fdff;
  border-radius: 16px;
  border: 1px solid #d4c9b6;
  transition: all 0.3s ease;
}

.answer-option:hover {
  background: #e6d5b8;
  transform: translateX(5px);
  border-color: #5f2d1e;
}

.answer-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5f2d1e;
}

/* Тэкставы адказ */
.text-answer {
  margin-top: 20px;
}

.text-input {
  width: 100%;
  padding: 12px 18px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #5f2d1e;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
  border-radius: 16px;
  box-sizing: border-box;
}

.text-input:focus {
  outline: none;
  border-color: #3e1a10;
  box-shadow: 0 0 0 3px rgba(62, 26, 16, 0.2);
}


.test-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.nav-btn {
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 25px;
  background: #E6EBF5;
  border: 2px solid #5f2d1e;
  border-radius: 50px;
  cursor: pointer;
  color: #5f2d1e;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: #5f2d1e;
  color: #E6EBF5;
  transform: scale(1.02);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.test-submit {
  display: flex;
  justify-content: center;
}

.submit-btn {
  font-family: "Cormorant SC", serif;
  font-size: 24px;
  font-weight: 700;
  padding: 12px 40px;
  background: #5F2D1E;
  color: #B1D8FF;
  border: 3px solid #B1D8FF;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #3e1a10;
  transform: scale(1.02);
}


.modal .result-score {
  font-family: "Cormorant SC", serif;
  font-size: 48px;
  font-weight: 700;
  color: #5f2d1e;
  margin: 20px 0;
}

.modal .result-percent {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #5f2d1e;
  margin-bottom: 15px;
}

.modal .result-grade {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #e8f5e9;
  color: #2e7d32;
  display: inline-block;
  margin-bottom: 20px;
}

.modal .result-details {
  text-align: left;
  margin: 20px 0;
  max-height: 200px;
  overflow-y: auto;
}

.modal .detail-item {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 14px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.modal .detail-item.correct {
  color: #4caf50;
}

.modal .detail-item.incorrect {
  color: #ff4444;
}


@media (max-width: 768px) {
  .test-header {
    flex-direction: column;
    text-align: center;
  }
  .placeholder_header {
    display: none;
  }
  .test-progress {
    flex-direction: column;
    align-items: stretch;
  }
  .progress-bar {
    width: 100%;
  }
  .question-card {
    padding: 20px;
  }
  .answer-option {
    font-size: 16px;
  }
  .submit-btn {
    width: 100%;
    font-size: 20px;
  }
}

.ce-page {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

.ce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 15px;
  position: relative;
  flex-wrap: nowrap;
}

.back_btn {
  width: clamp(70px, 12vw, 170px);
  height: clamp(50px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.back_btn:hover {
  transform: translateX(-3px);
  background: #5f2d1e;
}

.back-arrow {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.block_title {
  flex: 1;
  text-align: center;
  min-width: 0;
  padding: 0 5px;
}

.ce-title {
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  color: #5f2d1e;
  margin: 0;
  white-space: normal;
  line-height: 1.2;
  font-size: clamp(22px, 5vw, 42px);
  word-break: break-word;
}

.add-ce-btn {
  width: clamp(70px, 12vw, 170px);
  height: clamp(50px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 105px;
  background: rgba(95, 45, 30, 0.8980392157);
  border: 5px solid #b1d8ff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.add-ce-btn:hover {
  background: #5f2d1e;
  transform: scale(1.02);
}

.add-ce-btn img {
  width: clamp(24px, 4vw, 40px);
  height: auto;
  filter: brightness(0) invert(1);
}

.ce-description {
  text-align: center;
  margin-bottom: 40px;
}

.ce-description p {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  color: #5f2d1e;
}

.empty-message {
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  color: #5f2d1e;
  padding: 40px;
  opacity: 0.7;
}

/* Элементы */
.ce-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fdff;
  border: 2px solid #5f2d1e;
  border-radius: 20px;
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 15px;
}

.ce-item:hover {
  transform: translateX(5px);
  border-color: #9b3b2f;
}

.item-info {
  flex: 1;
}

.item-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #5f2d1e;
  margin-bottom: 5px;
}

.item-meta {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 13px;
  color: #3e1509;
  opacity: 0.7;
}

.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.item-btn {
  font-family: "Cormorant SC", serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #5f2d1e;
  background: #E6EBF5;
  color: #5f2d1e;
  text-decoration: none;
  display: inline-block;
}

.item-btn:hover {
  background: #5f2d1e; !important
  color: #E6EBF5;
  transform: scale(1.02);
}

.delete-item {
  color: white;
  border-color: #5f2d1e;
}

.delete-item:hover {
  background: #cc0000;
}

/* Выявы */
.item-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: #d4c9b6;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.image-item {
  gap: 15px;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #f0f7ff;
  border: 3px solid #5f2d1e;
  border-radius: 32px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  font-family: "Cormorant SC", serif;
  font-size: 28px;
  color: #5f2d1e;
  margin-bottom: 25px;
  text-align: center;
}

.modal-input, .modal-select {
  width: 100%;
  padding: 12px 18px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 16px;
  border: 2px solid #5f2d1e;
  border-radius: 16px;
  margin-bottom: 15px;
  box-sizing: border-box;
  background: white;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.modal-btn {
  font-family: "Cormorant SC", serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #5f2d1e;
}

.save-modal {
  background: #5f2d1e;
  color: #f0f7ff;
}

.save-modal:hover {
  background: #3e1a10;
}

.cancel-modal {
  background: #E6EBF5;
  color: #5f2d1e;
}

.cancel-modal:hover {
  background: #d0d9e5;
}

.image-preview {
  margin: 15px 0;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  border: 2px solid #5f2d1e;
}

.image-view-content {
  text-align: center;
  padding: 20px;
}

.image-view-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 3px solid #5f2d1e;
}

.close-image-modal {
  font-family: "Cormorant SC", serif;
  font-size: 16px;
  padding: 10px 25px;
  background: #5f2d1e;
  color: #f0f7ff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}


@media (min-width: 756px) and (max-width: 1193px) {
  .ce-header {
    gap: 10px;
  }
  .back_btn {
    padding: 4px;
  }
  .back-arrow {
    width: 28px;
    height: 28px;
  }
  .ce-title {
    font-size: clamp(20px, 3vw, 38px);
  }
  .add-ce-btn {
    width: clamp(60px, 10vw, 100px);
    height: clamp(45px, 7vw, 80px);
    border-width: 4px;
  }
  .add-ce-btn img {
    width: clamp(20px, 3.5vw, 32px);
  }
}
@media (max-width: 850px) {
  .ce-title {
    font-size: clamp(18px, 3vw, 25px);
  }
}
@media (max-width: 768px) {
  .ce-page {
    padding: 20px 12px;
  }
  .ce-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ce-item {
    flex-direction: column;
    text-align: center;
  }
  .item-actions {
    justify-content: center;
  }
  .image-item {
    flex-direction: row;
    text-align: left;
  }
  .image-item .item-info {
    text-align: left;
  }
  .modal-content {
    padding: 20px;
    width: 95%;
  }
}
@media (max-width: 480px) {
  .ce-title {
    font-size: 19px;
  }
  .item-title {
    font-size: 16px;
  }
  .item-btn {
    font-size: 13px;
    padding: 5px 12px;
  }
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .modal-btn {
    width: 100%;
  }
  .image-item {
    flex-direction: column;
    text-align: center;
  }
  .image-item .item-info {
    text-align: center;
  }
  .item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
}

.add-ce-page {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

.add-ce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
  position: relative;
}

.add-ce-title {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
  color: #5f2d1e;
  margin: 0;
  text-align: center;
}

.add-ce-form {
  max-width: 900px;
  margin: 0 auto;
  background: #f0f7ff;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.material-block {
  margin-top: 20px;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .add-ce-form {
    padding: 20px;
  }
  .add-ce-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .add-ce-title {
    font-size: clamp(20px, 5vw, 32px);
  }
}

.add-ce-page {
  background: rgba(252, 230, 183, 0.768627451);
  padding: 40px 20px;
  min-height: 100vh;
}

.add-ce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
  position: relative;
}

.add-ce-title {
  font-family: "Cormorant SC", serif;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
  color: #5f2d1e;
  margin: 0;
  text-align: center;
}

.add-ce-form {
  max-width: 900px;
  margin: 0 auto;
  background: #f0f7ff;
  border: 3px solid #5f2d1e;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.material-block {
  margin-top: 20px;
  padding-top: 10px;
}


@media (max-width: 768px) {
  .add-ce-form {
    padding: 20px;
  }
  .add-ce-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .add-ce-title {
    font-size: clamp(20px, 5vw, 32px);
  }
}
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 992px) {
  .container {
    max-width: 792px;
    margin: 0 auto;
    padding: 0 12px;
  }
}

.ql-editor .ql-align-center {
    text-align: center !important;
}
.ql-editor .ql-align-right {
    text-align: right !important;
}
.ql-editor .ql-align-justify {
    text-align: justify !important;
}


.ql-editor img.ql-align-center {
    display: block;
    margin: 15px auto;
}
.ql-editor img.ql-align-right {
    display: block;
    margin: 15px 0 15px auto;
}


.text_teory_wrapper .ql-align-center {
    text-align: center !important;
}
.text_teory_wrapper .ql-align-right {
    text-align: right !important;
}
.text_teory_wrapper .ql-align-justify {
    text-align: justify !important;
}
.text_teory_wrapper img.ql-align-center {
    display: block;
    margin: 15px auto;
}
.text_teory_wrapper img.ql-align-right {
    display: block;
    margin: 15px 0 15px auto;
}/*# sourceMappingURL=style.css.map */


/* Общее правило для всех элементов */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.topic_block,
.topic_block2,
.item-title,
.ce-item .item-title,
.block_title,
.ce-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow: hidden;
}


.topic_block,
.topic_block2,
.start_test2,
.item-btn {
  white-space: normal !important;
  word-break: break-word;
  min-width: 0;
}


.item-title,
.topic_block div:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.item-meta {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow: hidden;
}

.ce-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.3;
}


.test-title-header {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.3;
}


.ce-item .item-title {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}


.item-btn {
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
}


.block_title {
  min-width: 0;
  overflow: hidden;
}


@media (max-width: 768px) {
  .ce-title {
    font-size: clamp(16px, 4vw, 28px) !important;
  }
  
  .test-title-header {
    font-size: clamp(16px, 4vw, 24px) !important;
  }
  
  .item-title {
    font-size: 14px !important;
  }
  
  .item-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}
.answer-option {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.answer-option span {
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}

.file-name-wrap {
    flex: 1;
    min-width: 0;
    max-width: 220px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 14px;
}



/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.image-view-content {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
}

.image-view-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #5f2d1e;
}

.image-view-content .close-btn {
    margin-top: 15px;
    padding: 10px 30px;
    background: #5f2d1e;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.image-view-content .close-btn:hover {
    background: #3e1a10;
    transform: scale(1.02);
}