.main-background {
  /* background-color: #18385c; */
 
  /* min-height: 100vh; */
  background-image: url('/img/301.jpg'); 
  background-size: cover;
  background-position: center;

}



* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding-top: 0;
  overflow-x: hidden; /* Глобально отключает горизонтальный скролл */
  width: 100%;
}


body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #f0e9ff, #ffffff);
  margin: 0;
  padding: 0;
  padding-top: 50px;
}

.tabs-menu {
  padding: 20px;
  max-width: 1000px;
  margin: 40px auto; /* Центрируем блок по вертикали */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.tablist-reponsiveScroll {
  overflow-x: hidden;
  margin-bottom: 16px;
  border-bottom: 2px solid #ddd;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
   overflow-y: hidden; /* <--- Добавьте это */
  height: auto;       /* Убедитесь, что высота не фиксирована */
}

[role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
}

[role="tab"] {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Центрирует текст */
  padding: 12px 20px;
  background-color: #056991;
  color: #fff;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: background 0.3s;
  min-width: 120px;
  height: 100%; /* Чтобы выровнять кнопки */
}


[role="tablist"] [role="presentation"] {
  margin: 0;
}



[role="tab"]:hover {
  background-color: #4a90e2a8;
}

[role="tab"][aria-selected="true"] {
  background-color: #fff;
  color: #4a90e2;
  font-weight: bold;
  border: 2px solid #4a90e2;
  border-bottom: none;
  position: relative;
  top: 2px;
  z-index: 1;
}

[role="tabpanel"] {
  background: #fff;
  border-radius: 0 0 6px 6px;
  padding: 20px;
  display: none;
}

[role="tabpanel"][aria-hidden="false"] {
  display: block;
}

/* Iframe style */
.forma3_opros {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 6px;
}

/* Quiz container styles */
.quiz-container {
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fafafa;
  min-height: 600px; /* делаем блок визуально длиннее */
  box-shadow: 0 0 10px rgba(85, 26, 139, 0.1);
}

#question-container {
  margin-bottom: 30px;
}

#progress {
  font-weight: bold;
  margin-bottom: 10px;
  color: #4a90e2;
}

#question {
  margin-bottom: 10px;
  font-size: 18px;
}

.navigation button {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.navigation button:hover {
  background-color: #6f2ca3;
}

#result {
  color: #333;
  text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .tabs-menu {
    padding: 10px;
  }

  [role="tab"] {
    min-width: unset;
    font-size: 14px;
    padding: 10px 14px;
  }

  .quiz-container {
    padding: 16px;
    min-height: 700px;
  }

  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  .navigation button {
    width: 100%;
    justify-content: center;
  }
}

  .quiz-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .quiz-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
  }
.voprosCount{
  display: flex;
  justify-content: space-between;
}
  #progress {
    font-size: 15px;
    color: #888;
    text-align: left;
    margin-bottom: 12px;
  }

#progress_count{
  font-size: 15px;
    color: #888;
    margin-bottom: 12px;
}

  
  #question {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.4;
  }

  #answer-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
  }

  #answer-form label {
    background: #f8f9fb;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1.5px solid #dee3ea;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
  }

  #answer-form label:hover {
    background-color: #e9f1ff;
    border-color: #a8cfff;
  }

  #answer-form input[type="radio"] {
    margin-right: 14px;
    accent-color: #4a90e2;
    transform: scale(1.25);
  }

  .navigation {
    display: flex;
    justify-content: space-between;
  }

  .navigation button {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
    transition: background-color 0.25s ease, transform 0.25s ease;
  }

  .navigation button:hover {
    background-color: #357bd8;
    transform: translateY(-1.5px);
  }

  .navigation svg {
    fill: white;
  }

  #result {
    display: none;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    background: #f0fff4;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #b9ecd6;
  }

  @media (max-width: 600px) {
    .quiz-container {
      padding: 28px;
    }

    #question {
      font-size: 22px;
    }

    .navigation {
      flex-direction: column;
      gap: 12px;
    }

    .navigation button {
      width: 100%;
      justify-content: center;
    }
  }

.project-section {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
  }

  .project-section h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #04435c;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
  }

  .project-section .date {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
  }

  .project-section a {
    color: #04435c;
    text-decoration: underline;
  }

  .photo-description {
    margin-top: 30px;
    font-weight: bold;
    font-size: 18px;
  }

  .main-photo {
    margin-top: 15px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 6px;
  }

  .main-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
  }

  .sub-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .sub-photos img {
    width: calc(33.333% - 10px);
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  @media (max-width: 768px) {
    .sub-photos img {
      width: 100%;
    }
  }

  .ludomania-text h2 {
  font-size: 45px;
  margin-bottom: 30px;
  text-align: center;
  color: #04435c;
}