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

body {
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin-inline: auto;

    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #333;
    line-height: 1.5;
    line-height:1.45; margin:0; padding:0
}

.wrapper {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fdf6e3; /* мягкий кремовый */
    height: auto;
    padding-bottom: 10%;
}



hr{
    width: 90%;
    margin: 1% auto;
    height: 1px; /* толщина */
    background-color: gray; /* цвет */
    border: none; /* убираем стандартную границу */
}
/* ====== HEADER ================ */
header {
    display: flex;
    justify-content: space-around;
    height: 100px;
    background-color: rgb(143, 104, 57);
    
}

header>ul {
    display: flex;
    padding: 1%;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    max-width: 99%;
    margin: 0 auto;
    font-size: 22px;
    gap: 100px;
    
}
/* header li{

    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    justify-content: space-around;
    align-items: center;
    
} */
.header li::before {

    content: none;

}
header a {
    text-decoration: none;
    color: whitesmoke;
}

/* UL */

ul {
    list-style: none;
    padding-left: 0;
    padding: 5px;
    line-height: 1.2;
    font-size: 18px;
}

ul>li {
    margin-left: 10px;
    padding: 5px;
}
li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
}
li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.4em; /* регулируешь */
  font-size: 1.2em;
}

ol{
    margin-left: 5%;
    font-size: 18px;
    line-height: 1.5;
}


/* a -sylka */
a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 1s ease;
    color: rgb(227, 142, 90);
    font-size: 28px;
}

a:hover {
    transform: scale(0.9);
    color: rgb(199, 199, 1)
}


/* ulHome */

.ulHome {
    display: flex;
    gap: 7%;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    width: 90%;
}

.zagolowok {
    width: 200px;
    height: 292px;
    margin-bottom: 10%;
}

.zagolowok>img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, border 0.3s ease;
    outline: 0px solid black;
    cursor: pointer;
}

.zagolowok:hover {
    transform: scale(0.95);
    /* outline: 5px solid black; */
}

/* IMG/ VIDEO prezent */
.video {
    width: 80%;
    /* height: 36em; */
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 2% auto;
}
.prezent{
    width: 80%;
    /* height: 54em; */
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 2% auto;
}
.pdf{
    width: 60%;
    /* height: 54em; */
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 2% auto;
}

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

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

.image img {
    max-width: 80%;
    border-radius: 12px;
}
.video>iframe {
    width: 80%;
    margin: 0 auto;
    height: 32em;
}

/* DIV */

.two {
  display: flex;
  width: 100%;
  margin: 1%;
}

.two > div {
  flex: 1; /* Равномерно делит пространство (по 50%) */
  padding: 1%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* или 'space-evenly', если нужно */
}

/* AUDIO */
.audio-card {
    background: #fff8dc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.audio-info {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.audio-header {
    font-size: 16px;
    margin-bottom: 5px;
}

#playBtn {
    background: #ff7675;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

#playBtn:hover {
    transform: scale(1.05);
}

.playing {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.speed-controls {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    margin-top: 18px;

}

.speed-controls button {

    border: none;
    border-radius: 18px;

    padding: 10px 18px;

    font-size: 15px;
    font-weight: 600;

    background: #e8e8e8;

    cursor: pointer;

    transition: 0.2s ease;

}

/* hover */

.speed-controls button:hover {

    transform: translateY(-2px);

    background: #dcdcdc;

}

/* скорость */

#speedLabel {

    font-size: 20px;
    font-weight: 700;

    color: #333;

    min-width: 52px;
    text-align: center;
    
}

/* ПРОГРЕСС */
.progress-container {
    width: 70%;
    margin: 0 auto;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    margin-top: 15px;
    position: relative;
    cursor: pointer;
    
}

.progress {
    height: 100%;
    width: 0%;
    background: #ff7675;
    border-radius: 10px;
}

 
#slowBtn,
#fastBtn {
    background: #ff7675;
    color: white;
}
/* кружок */
.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #ff7675;
    border-radius: 50%;
}

/* end AUDIO */


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

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

/* Контент с текстом */
.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: 100000px; /* Достаточно для раскрытия текста */
   opacity: 1; /* Плавное появление */
   max-width: 100%;
}
/* Czest 2 raskrytia bloka */
.h-container {
   background-color: #e8f4fd;
   border-radius: 10px;
   border: 1px solid #b9d6f3;
   padding: 5px 20px;
   margin: 20px auto;
   cursor: pointer;
   width: 98%;
   position: relative;
   overflow: hidden;
}

/* Заголовок блока */
.h-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   position: relative;
   font-size: 24px;
   color: #230575;
   font-weight: 600;
   text-align: center;
}
.h-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;
}
.h-content p{
   font-size: 22px;
}

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



/* ---------- END POKAZ OTWETA OPTIMA ------------------ */

.zoomable {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.zoomable.zoomed {
    transform: scale(1.5); /* увеличиваем картинку в 2 раза */
    z-index: 999;
    position:absolute;
    margin: 0 auto;
    left: 25%;
}

/*  */

    .icon {
      background-color: antiquewhite;
      width: 170px;
      height: 260px;
      margin: 2% auto;
      display: flex;              /* включаем flex */
      flex-direction: column;     /* элементы сверху вниз */
      justify-content: center;    /* центрируем по вертикали */
      align-items: center;        /* центрируем по горизонтали */
      text-align: center;
    }

    .icon > a > img {
      width: 60%;   /* пропорционально */
      height: auto;
      margin: 20px 0 0 0;    /* убираем лишние отступы */
    }

    .icon > p {
      margin: 5px 0 30px 0; /* чуть отступа сверху */
      text-align: center;
    }
/* .audio{
    display: flex;
    width: 30%;
    margin: 1% auto;
} */
/* table */

table{
    border: 1px solid black;
    width: 96%;
    margin: 1% auto;
    /* text-align: center; */
    border-collapse: collapse;
    font-size: 18px;
}
th,td{
    border: 1px solid black;
     padding: 0.5%;
     width: 10%;
     max-width: 14%;
}
td>ul>li{
     font-size: 13px;
}
td>ul>li>em{
     color: blue;
}
table{
    text-align: center;
}
th{
    background-color: rgb(215, 229, 224);
}
td{
    background-color: rgb(230, 206, 192);
}

/* FLEX */
.flex{
    display: flex;
    width: 100%;
    gap: 3px;
}
.flex>div{
    width: 100%;
}

.okno{
    display: inline-block;
  width: 50px;
  height: 25px;
  border: 2px solid black;
  vertical-align: middle;
}

.column{
    display: flex;
    flex-direction: column;
}
.column>button{
    width: 150px;
    padding: 2px;
    margin: 2px;
}

button.active {
  background-color: #007bff;
  color: white;
  border: 2px solid #0056b3;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
}

#audio{
    width: 100%;
    display: flex;
    justify-content: center; 
}
#audio>iframe{
    max-width: 100%;
    width: 560px;   /* любую ширину можно оставить фиксированной */
    height: 315px;
    display: block;
}
/* QUESTIONS */
.qa-box {
        background: #fff;
        padding: 5px;
        border-radius: 10px;
        width: 90%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 10px;
    }

    .question {
        font-size: 20px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .info-icon {
        cursor: pointer;
        font-size: 22px;
        margin-left: 10px;
        transition: transform 0.3s;
        user-select: none;
    }

    .info-icon:hover {
        transform: scale(1.2);
    }

    .answer {
        margin-top: 15px;
        padding: 15px;
        background: #e8f4ff;
        border-left: 4px solid #2a79ff;
        border-radius: 6px;
        font-size: 18px;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .answer.show {
        display: block;
        opacity: 1;
    }

    /* zwuk */

    .zwuk{
        width: 40%;
        margin: 0 auto;
        height: 100px;
    }
    .zwuk>iframe{
        width: 100%;
        height: 100%;
    }

    /* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {

    body {
        padding: 0;
    }

    .wrapper {
        width: 100%;
    }

    /* HEADER */

    header {
        height: auto;
        padding: 10px 0;
    }

    header > ul {
        flex-direction: column;
        gap: 15px;
        list-style: none;
    }
    header > ul> li{
         list-style-type: none;
    }
    li::before {
    content: none;
    }

    a {
        font-size: 20px;
        color: wheat;
    }
    .text{
        padding: 5px;
    }
    .text p{
        width: 90%;
        margin-left: 7px;
    }

    /* TITLES */

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 18px;
        margin: 5px;
        line-height: 1.5;
    }

    .text {
        width: 96%;
        padding: 10px;
    }

    /* IMAGES */

    .image img {
        max-width: 100%;
        height: auto;
    }

    /* VIDEO */

    .video,
    .prezent,
    .pdf {
        width: 100%;
        height: auto;
    }

    .video iframe,
    .prezent iframe,
    .pdf iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    /* FLEX */

    .two,
    .flex {
        flex-direction: column;
    }

    /* AUDIO */

    .audio-card {
        padding: 15px;
    }

    .audio-info {
        flex-direction: column;
        gap: 8px;
        font-size: 16px;
    }

    .progress-container {
        width: 100%;
    }

    /* TABLE */

    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        font-size: 16px;
    }

    th,
    td {
        min-width: 120px;
    }

    /* ICON */

    .icon {
        width: 90%;
        height: auto;
        padding: 20px 0;
    }

    /* ZOOM IMAGE */

    .image-overlay img {
        max-width: 95%;
        transform: scale(1);
    }
    .ul>li>a{
    font-size: 16px;
    color: #685207;
    margin-left: -50px;
    text-align: left;
    width: 98%;
    }
    .ul{
    text-align: left;
    }
    .p30{
        font-size: 20px;
        text-align: left;
    }
    

}

/* слова */
/* =========================
   WORDS PAGE
========================= */

#wordsContainer {

    width: 90%;

    max-width: 800px;

    margin: 20px auto;

}

.word-card {

    background: white;

    border-radius: 18px;

    padding: 20px;

    margin-bottom: 16px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.08);

}

.word-title {

    font-size: 28px;

    font-weight: bold;

    color: #7b2cbf;

    margin-bottom: 6px;

}

.word-translation {

    font-size: 22px;

}

.word-actions {

    display: flex;

    gap: 10px;

}

.word-actions button {

    border: none;

    background: #ff7675;

    color: white;

    padding: 12px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 20px;

}

.empty {

    text-align: center;

    font-size: 24px;

    margin-top: 50px;

}

/* mobile */

@media (max-width: 768px) {

    .word-card {

        flex-direction: column;

        gap: 20px;

        align-items: flex-start;

    }

}