/* Стили для карточек уроков */
.lesson-card {
  background: #f7fafd;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 28px 24px;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.lesson-card h2 {
  color: #2c3e50;
  margin-bottom: 16px;
  font-size: 2rem;
}
.lesson-text {
  font-size: 1.08rem;
  color: #34495e;
  margin-bottom: 18px;
  line-height: 1.7;
}
.lesson-tasks {
  margin: 0;
  padding-left: 22px;
  margin-bottom: 10px;
}
.lesson-tasks li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.lesson-tasks strong {
  color: #007bff;
}
.lesson-tasks ul {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 18px;
}
/* Стили для блока фильтров идиом */
.filter-block {
  background: #f7fafd;
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08em;
  font-weight: 500;
  color: #1976d2;
  border: none;
}
.filter-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #2c3e50;
}
.checkbox-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-label {
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 15px;
  transition: background 0.2s;
}
.filter-label:hover {
  background: #e3eafc;
}
.subject-checkbox {
  margin-right: 6px;
  accent-color: #007bff;
}
.filter-reset-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.filter-reset-btn:hover {
  background: #0056b3;
}
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f9f9f9; }
body {
	font-family: 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: #fff;
	color: #222;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 16px;
}

nav {
	background: #e3f2fd;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	padding: 20px 0; /* Added padding for top and bottom */
}
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
}
nav ul li {
	margin: 8px 8px 0 8px;
}
nav ul li a {
	color: #1976d2;
	background: #f5faff;
	border-radius: 6px;
	padding: 12px 20px;
	display: block;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}
nav ul li a:hover {
	background: #bbdefb;
	color: #0d47a1;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #1976d2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 8px;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 26px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

main {
	padding: 32px 0 80px 0;
}
main h1, h2 {
	color: #1565c0;
	margin-bottom: 16px;
}
main p {
	color: #444;
}

footer {
	background: #e3f2fd;
	color: #1976d2;
	text-align: center;
	padding: 8px 0;
	position: fixed;
	width: 100%;
	bottom: 0;
	font-size: 1rem;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 16px 0;
}
.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 2px;
}
.site-nav .nav-mobile {
  display: none;
  align-items: center;
  padding: 0 8px;
}
.site-nav .nav-logo {
  height: 40px;
  margin-right: 8px;
}

@media (max-width: 600px) {
	.container {
		padding: 0 8px;
	}
	nav ul {
		flex-direction: column;
		align-items: stretch;
	}
	nav ul li {
		margin: 4px 0;
	}
	main {
		padding: 16px 0 80px 0;
	}
}
@media (max-width: 700px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #e3f2fd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 0;
  }
  nav ul.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
  .site-header {
    display: none;
  }
  .site-nav .nav-mobile {
    display: flex;
  }
  nav ul {
    top: 60px;
  }
}

#quiz-container ul {
    list-style: none;
    padding: 0;
}
.question-counter {
    font-weight: bold;
    margin-bottom: 10px;
}
.quiz-navigation {
    margin-top: 15px;
}
.quiz-navigation button {
    padding: 8px 14px;
    margin-right: 5px;
    cursor: pointer;
}
.quiz-result {
    background: #f3f3f3;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.filter-block {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-block select {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1em;
}

.section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}
.section-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.proverb-list {
    list-style-type: disc;
    padding-left: 20px;
}

.idiom-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pagination {
    margin-top: 15px;
    text-align: center;
}
.pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.pagination button.active {
    background: #0056b3;
}

/* Lesson blocks styles */
.lesson-block {
  border: 1px solid #e0e0e0;
  margin: 18px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px #f0f0f0;
  background: #fff;
  transition: box-shadow 0.2s;
}
.lesson-block.open {
  box-shadow: 0 4px 16px #d0d0d0;
}
.lesson-title {
  cursor: pointer;
  background: linear-gradient(90deg, #e3f0ff 0%, #f7faff 100%);
  padding: 16px 20px;
  font-size: 1.15em;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}
.lesson-title:hover {
  background: linear-gradient(90deg, #d0eaff 0%, #eaf6ff 100%);
}
.lesson-title .arrow {
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform 0.2s;
}
.lesson-block.open .lesson-title .arrow {
  transform: rotate(90deg);
}
.lesson-content {
  display: none;
  padding: 18px 24px;
  animation: fadeIn 0.3s;
}
.lesson-block.open .lesson-content {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lesson-text {
  margin-bottom: 12px;
  color: #333;
  font-size: 1em;
}
.lesson-tasks {
  margin-bottom: 10px;
  padding-left: 20px;
}
.lesson-tasks li {
  margin-bottom: 4px;
  color: #2a4d7a;
}
.lesson-question {
  margin: 10px 0 6px 0;
  font-weight: 500;
  color: #1a3a5a;
}
.lesson-variants {
  padding-left: 20px;
  margin-bottom: 0;
}
.lesson-variants {
  list-style-type: none;
  padding-left: 0;
}
.lesson-variants li {
  color: #3a5a7a;
  margin-bottom: 2px;
}

/* Quiz UI modern styles */
.quiz-card {
  background: #f7fafd;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 28px 24px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.question-counter {
  font-weight: bold;
  margin-bottom: 18px;
  color: #1976d2;
  font-size: 1.1em;
}
.question h3 {
  font-size: 1.15em;
  color: #2c3e50;
  margin-bottom: 12px;
}
.question ul {
  list-style: none;
  padding-left: 0;
}
.question li {
  margin-bottom: 10px;
}
.question label {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.question label:hover {
  background: #e3eafc;
}
.question input[type="radio"] {
  accent-color: #1976d2;
  margin-right: 10px;
}
.variant-select {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.variant-btn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.variant-btn:hover {
  background: #1565c0;
}
.quiz-navigation {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.quiz-navigation button {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.quiz-navigation button:hover {
  background: #1565c0;
}
.quiz-result {
  background: #e3f2fd;
  padding: 22px;
  border-radius: 12px;
  margin-top: 24px;
  text-align: center;
  color: #1976d2;
  font-size: 1.15em;
}
#retryBtn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
#retryBtn:hover {
  background: #1565c0;
}

/* Proverbs UI modern styles */
#proverbs-container {
  max-width: 700px;
  margin: 0 auto;
}
.section {
  background: #f7fafd;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px 20px;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.25em;
  color: #1976d2;
  margin-bottom: 14px;
  font-weight: 600;
}
.proverb-list {
  list-style: none;
  padding-left: 0;
}
.proverb-list li {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 8px;
  padding: 8px 14px;
  font-size: 1em;
  color: #2c3e50;
}
#section-filter {
  background: #e3f2fd;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 0;
  margin-right: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
#section-filter:focus {
  background: #bbdefb;
  outline: none;
}
