*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
   padding: 2%;
}
.wrapper{
    max-width: 1400px;
    margin: 0 auto;

}
/* ====== HEADER ================ */
header{
    display: flex;
    justify-content: space-around;
    height: 100px;
    background-color: cornflowerblue;
}
header ul{
    display: flex;
    gap: 4%;
    padding: 2%;
    list-style-type: none;
}

.li a{
    font-size: 24px;
    color:bisque;
}
.ulhead{
   display: flex;
   flex-wrap: wrap;
}
/* ========= MAIN =============== */
.main{
   max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

.section{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zmist{
    text-align: left;
    margin: 5%;
}
.rozklad{
   display: flex;
   /* gap: 5%; */
   /* flex-wrap: wrap; */
   justify-content: space-around;
   /* width: 100%; */
}
.zagolovok{
   display: flex;
   justify-content: space-around;
   width: 1200px;
}
.voproses{
   max-width: 90%;
   padding: 2%;
}

/* hr {
   border: 0;
   height: 1px;
   background: #333;
   box-shadow: 0 0 10px 1px #333;
} */

.boxRight{
   display: flex;
   justify-content: space-between;
}
.marginLeft{
   margin-left: 3%;
   width: 100%;
}
.flexColumn{
   display: flex;
   flex-direction:column;
   justify-content: center;
   align-items: center;
}

.blockZadanie{
   width: 95%;
   border: 1px solid gray;
   padding: 1%;
   margin: 15px 0;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* небольшая тень */
   transition: transform 0.3s ease, box-shadow 0.3s ease; /* плавные переходы */
   border-top: 2px solid coral;
}

/* =========== List Lesson ============== */
 .liLesson a{
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    color: rgb(16, 66, 66);
   
 }
 .liLesson{
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
 }
 
 .checkbox{
    margin-left: 10px;
    width: 20px;
    height: 20px;
 }
 .selected{
   text-decoration: underline;
   color: blue;
 }
 /* ======================== */
/* .two{
   display: grid;
   grid-template-columns: 1fr 1fr;
} */
 .two{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 auto;
    margin-left: 3%;
 }
 .two div{
  width: 100%;
 }
 .two img{
   width: 100%;
    
 }
 .two iframe{
  width: 100%;
  height: 100%;
}
.twoGrid{
   display: grid;
   gap: 2%;
}
.two_1{
   width: 100%;
   display: flex;
   gap: 20px;
   justify-content: space-around;
}
.two_1 img{
   width: 100%;
}
 .three{
    display: flex;
    align-items: center!important;
    gap: 1px;
    padding: 1%;
    width: 100%;
 }
 .three img{
    width: 100%;  
 }
 .three p{
   width: 100%;
 }
 .three div{
   width: 100%;
 }
 hr{
   border: none;          /* Убираем стандартное оформление */
   height: 2px;           /* Толщина линии */
   background-color: rgb(115, 103, 103); /* Цвет линии */
   margin: 1.5%;
 }

 /* flex na 3 */
 .flex3{
   display: grid;
   gap: 2%;
   max-width: 1200px;
 }
 .flex3 img{
   width: 100%;
 }
 
 /* ===== FOOTER ========= */
 footer{
    display: flex;
    justify-content: space-around;
    height: 100px;
    background-color: cornflowerblue;
 }
 /* ========= PREZENTATION ============ */
.prezent ,
.video {
    width: 80%;
    height: 40em;
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 0 auto;
}

.prezent iframe,
.video iframe {
    width: 100%;
    height: 90%;
}
.video video {
   width: 100%;
   height: 90%;
}

.vid{
   display: flex;
   justify-content: center;
   padding: 5px;
   flex-direction: column;
}
.vid iframe{
   width: 600px;
   height: 350px;
}
@media (max-width: 1200px) {
   .prezent ,
   .video  {
      width: 900px; 
      height: 500px;
   }
   .main{
      width: 80%;
      margin: 0 auto;
   }

   .two, .three {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
   }
   .zagolovok{
      width: 95%;
   }
   
}

@media (max-width: 768px) {
   
   .prezent ,
   .video  {
      width: 400px; 
      height: 250px;
   }

   .two, .three {
      display: flex;
      flex-direction: column;
      align-items: center;
   }
   .two img, .three img{
      width: 90%;
   }
}
/* ============== */
.plan{
   width: 1400px;
   height: 700px;
}
.img{
   max-width: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   
}
/* infobox */
.imageTwo{
   display: flex;
   width: 90%;
   justify-content: space-evenly;
   cursor: pointer;
   display: inline-block;
}
.info-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 999;
    }

    .info-box {
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
      max-width: 600px;
      text-align: center;
    }

.info-box p {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
  }

  .info-box strong {
    color: #0077cc; /* Цвет ключевых слов */
    font-size: 18px;
  }

  .info-box em {
    color: #d90505;
    font-style: italic;
    font-size: 22px;
  }

  #popupImage {
    width: 420px; /* размер картинки */
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border-radius: 8px;
  }
/*  */
.image img{
   width: 80%;
   display: flex;
   flex-direction: column;
   /* justify-content: center;
   align-items: center; */
   margin: 0 auto;
}
/* table */
table img{
   width: 80%;
}

/* ======= IMAGE ========= */
.image{
   width: 100%;
   /* height: 800px; */
   margin: 5px auto;
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
}
.image iframe{
   width: 100%;
   height: 100%;
}


.zoomable {
   transition: transform 1.5s ease;
}
.zoomable:hover {
   transform: scale(1.8); 
   margin-left: 5%;
}
.four{
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr;
   gap: 10px;
}
.four img{
   width: 100%;
   height: 200px;
}


 /* InfoText */
 .infoText{
   background-color: beige;
   padding: 2%;
   font-size: 20px;
 }
 .infoText p{
   margin-top: 2%;
   font-size: 20px;
   color: black;
 }
 .infoText h4{
   font-size: 24px;
   text-align: center;
 }
 .infoText ul{
   margin: 10px auto;
 }
 .hr{
   color: green;
   width: 100%;
   
 }

 /* Таблица*/
 table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 20px;
}
tr{
   width: 100%;
}
th, td {
   border: 1px solid #ddd;
   padding: 8px;
   text-align: center;
   font-size: 20px;
}
th {
   background-color: #f2f2f2;
}

.th,.td{
   width: 25%;
}
/* answer */
.answer {
    display: none;
}

.question button {
    margin-top: 10px;
}
.answ{
    padding: 0.5%;
    background-color: rgb(234, 241, 100);
}
/* ZADANIE */
.zadanie{
   width: 100%;
   padding: 1%;
   font-size: 28px;
   color: rgb(60, 4, 60);
   display: flex;
   gap: 5%;
   justify-content:center;
}

.zadanie select{
   background-color: rgb(194, 192, 192);
   padding: 0.5%;
}
.zadacha{
   width: 80%;
   display: flex;
   flex-direction: column;
}
/* interactive */
/* .question{
   width: 100%;
   font-size: 20px;
} */
.question-set{
   width: 100%;
   margin: 0 auto;
}
.vopros{
   font-weight: 800;
   margin-bottom: 3%;
}
label{
   margin-right: 2%;
}
.line{
   width: 200px;
}
.line_1{
   width: 100px;
   font-size: 16px;
   color: blue;
   font-weight: 900;
   font-style: italic;
}
.line_2{
   width: 150px;
   font-size: 16px;
   color: blue;
   font-weight: 900;
   font-style: italic;
}
.line_3{
   width: 300px;
   font-size: 16px;
   color: blue;
   font-weight: 900;
   font-style: italic;
}
.line_4{
   width: 40px;
   font-size: 16px;
   color: blue;
   font-weight: 900;
   font-style: italic;
   margin: 0 2px;
}
.line_5{
   width: 30px;
   font-size: 20px;
}
.line_6{
   width: 50px;
   font-size: 20px;
}
.line_7{
   width: 400px;
   font-size: 16px;
   color: blue;
   font-style: italic;
}
.line_8{
   width: 600px;
   font-size: 16px;
   color: blue;
   font-weight: 900;
   font-style: italic;
   margin: 0 2px;
}
.kolo{
   width: 45px;
   height: 45px;
   border-radius: 50%;
   border: 3px solid rgb(160, 54, 160);
   text-align: center;
   background-color: white;
}
.dialog{
   width: 100%;
}

/* div flex */
.colors{
   display: flex;
   width: 100%;
   gap: 2px;
   margin-top: 3px;
   align-items: flex-end;
}

button{
   background-color: aquamarine;
   font-size: 18px;
   margin: 3% 3%;
   cursor: pointer;
   width: 120px;
   height: 30px;
}
.correct {
   color: green;
   /* color: white; */
}

.incorrect {
   color: red;
   /* color: white; */
}
.word {
    cursor: pointer;
}
.wordAudio{
   cursor: pointer;
}
.word.strikethrough-blue {
    text-decoration: line-through;
    color: blue;
}
/* wybor neprawilnogo otweta */
.options {
   display: grid;
   grid-template-columns: 70% 30%;
   /* gap: 1px; */
   font-size: 18px;
   justify-content: center;
   align-items: flex-end;
   width: 70%;
   margin: 0 auto;
}

.option {
   cursor: pointer;
   margin-top: 10px;
   font-size: 18px; 
}
.boxRadio{
   margin-left: 20%;
   width: 50%;
   text-align: right;
   display: flex;
   justify-content: flex-end;
   gap: 15px;
   text-align: center;
}
select {
   font-size: 16px; 
   border-radius: 10px;
   color: rgb(81, 79, 79);
   padding: 1px;
}
.option.selected {
   background-color: #cce5ff; /* светло-синий */
}

.option.correct {
   background-color: #d4edda; /* зелёный */
}

.option.incorrect {
   background-color: #f8d7da; /* красный */
}
/* end */
li{
   font-size: 18px;
}
.selected {
   text-decoration: underline;
}



input {
   font-size: 20px;
   /* Увеличенный размер шрифта */
   width: 40px;
   /* Ширина поля ввода */
   text-align: center;
   /* Текст по центру */
}

.chek{
   width: 150px;
   text-align: center;
   padding: 2px;
}
/* end interactive */
/* radio label */
.task {
   margin-bottom: 10px;
   padding: 1%;
   /* display: flex;
   justify-content: space-evenly; */
}
.task img {
   display: block;
   margin-bottom: 10px;
   width: 100%; /* Примерный размер, можете изменить */
   height: auto;
}





.displayFlex{
   display: flex;
   width: 100%;
   align-items: flex-end;
   gap: 1%;
   flex-wrap: wrap;
}
.flex{
   display: flex;
   gap: 2%;
   align-items: center;
   flex-direction: column;
}


.przerewod{
   margin: 0;
   padding: 0.2%;
}
.boxColumn{
   display: flex;
   flex-direction: column;
}
.column{
   display: flex;
   flex-direction: column;
   gap: 4px;
   margin: 2%;
}

/* WIDTH */

.wid50{
   width: 50%;
}
.wid60{
   width: 60%;
}
.wid70{
   width: 70%;
}
.wid160{
   width: 160%;
}

/* -------------- POKAZ OTWETA OPTIMA -------------*/
.hint2-container {
   background-color: #e8f4fd;
   border-radius: 10px;
   border: 1px solid #b9d6f3;
   padding: 5px 20px;
   margin: 20px auto;
   cursor: pointer;
   width: 90%;
   position: relative;
   overflow: hidden;
}

/* Заголовок блока */
.hint2-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   position: relative;
   font-size: 16px;
   color: #2d2d2d;
}

/* Левый значок (иконка) через ::before */
.hint2-header::before {
   content: '';
   display: inline-block;
   width: 30px;
   height: 30px;
   margin-right: 10px;
   background-image: url('./image/shapka.png');
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   transition: opacity 0.3s ease-in-out;
   opacity: 1;
}

/* Стрелка справа через ::after */
.hint2-header::after {
   content: '';
   display: inline-block;
   width: 30px;
   height: 30px;
   background-image: url('./image/strelkaVerch.png');
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   transition: transform 0.3s ease-in-out;
   transform: rotate(0deg);
}

/* Контент с текстом */
.hint2-content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.6s ease-in-out, padding 0.3s ease-in-out;
   padding: 0 2px 0 2px;
   opacity: 0; /* Для плавного появления и исчезновения текста */
   transition: opacity 0.3s ease-in-out, max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
}
.hint2-content p{
   font-size: 18px;
}

/* Раскрытие блока */
.hint2-container.active .hint2-content {
   padding: 0 2px 5px 2px;
   max-height: 2500px; /* Достаточно для раскрытия текста */
   opacity: 1; /* Плавное появление */
   
   max-width: 100%;
}

/* Плавное скрытие иконки при активации */
.hint2-container.active .hint2-header::before {
   opacity: 0;
   transition: opacity 0.3s ease-in-out;
}

/* Поворот стрелки при активации */
.hint2-container.active .hint2-header::after {
   transform: rotate(180deg);
}

/* ---------- END POKAZ OTWETA OPTIMA ------------------ */
.left{
   margin-left: 10%;
}
.pravilo{
   padding: 1%;
   margin: 0 auto;
   margin-top: 3%;
   width: 95%;
}

/* TEXTERIA */
.result {
   font-size: 18px;
   line-height: 1.6;
   margin-top: 5px;
   padding: 5px;
   border: 1px solid #ccc;
   border-radius: 8px;
   background-color: #f9f9f9;
 }
.result span.correct {
   background-color: transparent;
   color: rgb(58, 122, 43);
   font-size: 20px;
 }
 
 .result span.incorrect {
   background-color: #ffe6e6; /* нежно-красный фон */
   color: red;
   font-weight: bold;
 }

textarea { width: 60%; height: 150px; margin-top: 10px;font-size: 18px;padding: 2%; }
button { margin-top: 10px; }
/* end TEXTERIA */

.audio-icon {
      width: 50px;
      height: 50px;
      cursor: pointer;
      padding-top: 1%;
    }

/* TABLE */

table {
            width: 90%;
            border-collapse: collapse;
            margin-bottom: 30px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin: 0 auto;
        }

        th,
        td {
            padding: 12px;
            text-align: left;
            font-size: 18px;
        }

        th {
            background-color: #4f46e5;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #e0e7ff;
        }

        tr:nth-child(odd) {
            background-color: #ffffff;
        }

        td {
            vertical-align: top;
        }