@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Унифицированные размеры шрифтов */
:root {
  --font-size-large: 24px;
  --font-size-medium: 18px;
  --font-size-small: 14px;

  /* Дополнительные размеры для унификации */
  --font-size-extra-large: 32px;
  --font-size-title: 28px;
  --font-size-subtitle: 20px;
  --font-size-body: 16px;
  --font-size-caption: 12px;
}

* {
  font-family: "Inter", "Arial", sans-serif;
}

/* Заголовки используют Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-main-title,
.hero-subtitle,
.alexey-title-left,
.stats-title,
.faq-section h2,
.university-section h2 {
  font-family: "Montserrat", "Arial", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

section {
  padding: 80px 0;
}

.hero {
  padding: 80px 0;
  margin-bottom: -70px;
}

button {
  outline: none;
}

footer {
  padding: 20px 0;
  color: white;
  background-color: black;
}

header {
  background-color: white; /* светлый фон */
  color: black; /* чёрный текст */
  position: relative;
}

header .container.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%; /* Чтобы совпадало с .container */
  max-width: 1230px; /* Чтобы точно соответствовало ширине курсов */
  margin: 0 auto;
  padding: 15px 20px; /* Такой же паддинг как у .container */
  box-sizing: border-box;
}

.site-logo {
  height: 25px;
  width: auto;
}

header nav a {
  color: black;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0;
  margin-bottom: -100px;
  position: relative;
  z-index: 2;
}

#courses {
  background-color: white;
  padding: 0px 0;
  position: relative;
  z-index: 1; /* Ниже hero-content */
}

.courses-description {
  color: #444;
  margin: 10px 0 30px 0;
  line-height: 1.6;
}

.hero-text {
  width: 80%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-image {
  position: relative;
  width: 300px;
  height: auto;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.hero-cta-btn {
  margin-top: 25px;
  display: inline-block;
}

.hero-cta-note {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
  max-width: 700px;
}

.floating-box {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Класс для появления текста */
.floating-box.visible {
  opacity: 1;
}

.hero-image:hover .floating-box {
  opacity: 1;
}

.floating-circle {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.courses {
  padding: 50px 0;
  background-color: white;
}

.course-card {
  width: 100%;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  position: relative;
  gap: 20px;
  padding: 30px;
  margin-bottom: 30px;
}

.course-logo {
  flex: 0 0 120px;
}

.course-logo img {
  width: 175px;
  height: 175px;
  border-radius: 15px;
}

.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-rating {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 120px;
  height: auto;
}

.course-details-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 18px;
  font-size: 20px;
  margin-top: auto;
}

.course-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.course-price-old {
  color: #888;
  text-decoration: line-through;
  font-weight: 600;
}

.course-price-new {
  color: #222;
  font-weight: 800;
}

.course-price-free {
  font-weight: 800;
}

.course-card h3 {
  font-size: 20px;
}

.course-details-bottom .btn {
  margin-left: auto;
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
}

.course-details {
  display: flex;
  gap: 10px;
}

.btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn1 {
  background-color: white;
  color: black;
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border: 2px solid #4caf50;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn1:hover,
.btn1:focus,
.btn1:active {
  background-color: #4caf50;
  color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}

.btn1:hover {
  filter: brightness(1.2);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn1:active {
  transform: scale(0.95);
}

.course-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 20px 0;
}

.course-filter-buttons .btn1 {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  padding: 10px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn2 {
  color: rgb(0, 0, 0);
  padding: 10px 10px;
  text-decoration: none;
  border-radius: 5px;
}

.university-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.university-section h2 {
  margin-bottom: 30px;
  color: #333;
}

.university-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.university-logos img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  transition: transform 0.3s;
}

.university-logos img:hover {
  transform: scale(1.05);
}

.stats-section {
  background-color: #ffffff;
  padding: 40px 20px;
}

.stats-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: #2c3e50;
}

.stat-label {
  font-size: 18px;
  color: #555;
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

.faq-section {
  padding: 0px 0;
  background-color: #f9f9f9;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 20px;
  text-align: left;
  padding: 15px 10px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 10px;
}

.faq-answer p {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}
.university-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
}

.university-section h2 {
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

.frame-caption {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 10px auto;
  font-size: 18px;
  font-weight: 500;
  color: #444;
}

.university-photo-frame {
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 15px;
  display: inline-block;
  background-color: white;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.university-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.university-logos img {
  max-width: 110px;
  height: auto;
  object-fit: contain;
  display: block;
}

.university-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
}

.university-text {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  color: #000000; /* Можно изменить цвет текста */
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Полупрозрачный фон для текста */
  padding: 5px;
  border-radius: 3px;
  margin-top: 10px;
  text-align: center;
}

.university-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

.university-frame-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.frame-caption {
  font-size: 18px;
  font-weight: 500;
  color: #444;
  margin-left: 0;
  margin-bottom: 10px;
  margin-top: 10px;
}

.university-photo-frame {
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 15px;
  background-color: white;
  box-sizing: border-box;
}

.university-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.university-logos img {
  max-width: 110px;
  height: auto;
  object-fit: contain;
  display: block;
}

.outside-caption {
  font-style: italic;
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  margin-left: 750px;
  position: relative;
  top: -5px;
  background: #f9f9f9;
  display: inline-block;
  padding: 4px 10px;
}

.dashed-wrapper {
  border: 5px dashed rgba(0, 0, 0, 0.5);
  border-radius: 55px;
  padding: 55px;
  background-color: #ffffff;
  max-width: 1150px;
  margin: 0 auto;
  box-sizing: border-box;
}
.stats-inline-block {
  margin-top: 40px;
  padding: 0;
}

.stats-title {
  font-size: 36px;
  text-align: center;
  margin: 40px 0 30px 0;
  font-weight: 700;
  color: #222;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.stat-box {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  text-align: left;
}

.big-number {
  font-size: 75px;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 12px;
}

.stat-text {
  font-size: 17px;
  color: #444;
}
.alexey-block {
  padding: 60px 0;
  background-color: #ffffff;
}

.alexey-frame {
  border: none;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: transparent;
}

.alexey-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.alexey-text {
  flex: 0 0 150px; /* фикс ширина для заголовка */
  text-align: left;
}

.alexey-title {
  font-size: 32px;
  font-weight: 900;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.alexey-info {
  flex: 1;
  margin-top: -5px;
  padding-left: 10px;
}

.alexey-description {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.alexey-points {
  list-style: disc inside;
  font-size: 17px;
  color: #444;
  padding-left: 0;
  margin-top: 10px;
}

.alexey-photo {
  flex: 0 0 280px;
  max-width: 280px;
}

.alexey-photo img {
  width: 100%;
  border-radius: 12px;
}
.alexey-wrapper {
  padding: 60px 20px;
  background-color: transparent;
}

.alexey-block-soft {
  background-color: transparent;
  padding: 0px 0px;
  max-width: 1150px;
  margin: 0 auto;
}

.alexey-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: flex-start;
}

.alexey-left-column {
  flex: 1 1 65%;
}

.alexey-title-left {
  font-size: 36px;
  font-weight: 800;
  color: #222;
  margin-bottom: 30px;
}

.alexey-text-content {
  margin-top: 0;
}

.alexey-text-content li {
  font-size: 16px;
}

.alexey-description {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.alexey-points {
  list-style: disc inside;
  padding-left: 0;
  font-size: 17px;
  color: #444;
  margin: 0;
}

.alexey-photo {
  flex: 1 1 30%;
  max-width: 280px;
  margin-top: 0;
}

.alexey-photo img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alexey-cta-block {
  background-color: #e6f5ff;
  border-radius: 20px;
  padding: 25px 30px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.alexey-cta-text {
  font-size: 17px;
  color: #222;
  font-weight: 600;
  flex: 1 1 auto;
  margin: 0;
}

.alexey-cta-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.full-width-cta {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.social-media-block {
  margin-top: 30px;
  text-align: center;
}

.social-media-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  transform: scale(1.1);
}

.alexey-layout {
  display: flex;
  gap: 40px;
}

.alexey-left-column,
.alexey-right-column {
  flex: 1;
}

.alexey-right-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-main-title {
  font-size: var(--font-size-extra-large);
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.3;
}
.rating-label {
  position: absolute;
  top: 2px;
  right: 50px;
  font-size: 10px;
  color: #666;
  font-weight: 500;
  background: white;
  padding: 2px 6px;
  border-radius: 6px;
}

.course-card {
  margin-right: 0px; /* Добавляем правый отступ */
  width: calc(100% - 0px); /* Учитываем отступ в ширине */
  box-sizing: border-box; /* Чтобы padding не влиял на общую ширину */
}

.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 1024px) {
  .course-card {
    margin-right: 10px;
    width: calc(100% - 10px);
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.green-exam {
  color: #4caf50;
  font-weight: 800;
}

#exam-type {
  display: inline-block;
  width: 3.5ch;
  text-align: center;
}

.typing-cursor::after {
  content: "_";
  animation: blink-caret 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: var(--font-size-title);
  font-weight: 400; /* обычный, не жирный */
  color: #222;
  margin-top: -10px; /* ближе к заголовку */
  margin-bottom: 20px;
  line-height: 1.2;
}

.license {
  font-size: var(--font-size-large);
  font-weight: 500; /* полужирный для акцента */
  color: #333333; /* глубокий тёмно-серый */
  margin-top: 0px; /* отступ от надписи выше */
  line-height: 1.5;
  text-align: left;
}

.hero-license-wrapper {
  border: 3px dashed rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 12px 18px;
  background-color: #ffffff;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.hero-cta-btn {
  display: block;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  max-width: 67%;
}

.hero-cta-note {
  font-size: var(--font-size-small);
  color: #555;
  margin-top: 0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .hero-license-wrapper,
  .hero-cta-btn,
  .hero-cta-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-license-wrapper {
    max-width: 95%;
  }
}

@media (max-width: 1024px) {
  .course-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .course-logo {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .course-logo img {
    width: 50%; /* Уменьшаем на 25% от ширины */
    height: auto;
    max-width: 200px;
    margin: 0 auto;
  }

  .course-content-info,
  .course-content-math,
  .course-content-info11,
  .course-content-phf,
  .course-content-phf11,
  .course-content-Math11 {
    width: 100%;
  }

  .course-details-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rating-label {
    position: static;
    margin: -10px 0 -20px 0; /* уменьшаем отступ */
    font-size: 11px;
  }

  .course-rating {
    position: static;
    width: 80px; /* немного меньше */
    margin: 0;
  }

  .faq-section h2 {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .hero {
    margin-bottom: 0px;
  }
  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    padding: 0 15px;
  }

  .hero-image {
    width: 100%;
    max-width: 500px;
  }

  .hero-image img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
  }

  .floating-box {
    width: 65%;
    margin: -10px auto 20px auto;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
  }

  @media (max-width: 1024px) {
    .floating-box {
      display: none;
    }
  }

  .hero-main-title {
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
  }

  .hero-subtitle,
  .license {
    text-align: center;
    font-size: 16px;
  }
}

/* Базовые стили */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #000;
}

.burger {
  outline: none;
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .burger {
    display: block;
    padding: 0px 0px 8px 0px;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* Появление при скролле */
header.hidden {
  transform: translateY(-100%);
}

header.visible {
  transform: translateY(0);
  opacity: 0.9;
}
@media (max-width: 1024px) {
  .university-section {
    padding: 30px 10px;
  }

  .university-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
  }

  .frame-caption {
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
  }

  .university-photo-frame {
    padding: 10px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .university-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .university-logos img {
    max-width: 60px;
    height: auto;
    object-fit: contain;
  }

  .dashed-wrapper {
    padding: 25px 10px;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 20px;
    border-width: 3px;
  }

  .stats-title {
    font-size: 22px;
    margin: 30px 0 20px;
  }

  .stats-row {
    flex-direction: column;
    gap: 16px;
  }

  .stat-box {
    text-align: center;
    max-width: 100%;
  }

  .big-number {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .stat-text {
    font-size: 16px;
  }
}
@media (max-width: 1024px) {
  .alexey-wrapper {
    padding: 30px 10px;
  }

  .alexey-block-soft {
    padding: 20px 10px;
  }

  .alexey-layout {
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .alexey-left-column {
    flex: 1 1 60%;
    max-width: 100%;
  }

  .alexey-title-left {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .alexey-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .alexey-points {
    font-size: 13px;
    margin-top: 10px;
    /* padding-left: 15px; */
  }

  .alexey-photo {
    flex: 1 1 35%;
    max-width: 150px;
  }

  .alexey-photo img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .alexey-cta-block {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
  }

  .alexey-cta-text {
    flex: 1 1 100%;
    text-align: center;
    font-size: 14px;
  }

  .alexey-cta-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
@media (max-width: 1024px) {
  .cta-mobile-hide {
    display: none;
  }
}
@media (max-width: 1024px) {
  .hide-on-mobile {
    display: none;
  }
}
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 22px;
  border-radius: 30%;
  cursor: pointer;
  display: none;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#back-to-top:hover {
  background-color: #388e3c;
}
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  margin: 40px auto;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: fit-content;
  animation: scrollInfinite 40s linear infinite;
}

.carousel-track img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1);
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #4caf50;
  width: 0%;
  z-index: 9999;
}
.quick-question {
  background-color: white;
  padding: 30px 20px;
  text-align: center;
}

.question-container {
  max-width: 600px;
  margin: 0 auto;
}

#tgForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#tgForm input,
#tgForm textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: vertical;
}

#tgForm button {
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#tgForm button:hover {
  background-color: #45a049;
}

#q-success {
  color: #2e7d32;
  font-weight: bold;
  margin-top: 10px;
}

/* Существующие стили для alexey-wrapper и колонок */
.alexey-wrapper {
  padding: 20px 20px;
  background-color: transparent;
}

.alexey-block-soft {
  background-color: transparent;
  padding: 0px;
  max-width: 1150px;
  margin: 0 auto;
}

.alexey-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: flex-start;
}

.alexey-left-column {
  flex: 1 1 65%;
}

.alexey-right-column {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 1024px) {
  .alexey-layout {
    flex-direction: column; /* Колонки теперь вертикально */
    gap: 30px; /* Уменьшаем промежуток между колонками */
  }

  .alexey-left-column,
  .alexey-right-column {
    flex: 1 1 100%; /* Занимают всю ширину */
    width: 100%;
  }

  .alexey-photo {
    max-width: 200px; /* Уменьшаем фото для мобильных */
    margin: 0 auto; /* Центрируем фото */
  }

  .social-media-block {
    width: 100%;
    margin-top: 20px;
  }

  .social-icons {
    justify-content: center; /* Центрируем иконки соцсетей */
  }
}

/* Дополнительные стили для очень маленьких экранов (350px) */
@media (max-width: 350px) {
  .alexey-layout {
    gap: 20px;
  }

  .alexey-photo {
    max-width: 250px;
  }

  .alexey-title-left {
    font-size: 24px; /* Уменьшаем заголовок */
  }

  .alexey-description,
  .alexey-points {
    font-size: 14px; /* Уменьшаем текст */
  }

  .social-icon {
    width: 30px; /* Уменьшаем иконки соцсетей */
    height: 30px;
  }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  gap: 8px;
  transition: transform 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.contact-link:hover {
  transform: scale(1.05);
}

.contact-icon {
  width: 32px;
  height: 32px;
}

.contact-username,
.contact-phone {
  font-weight: 600;
  font-size: 16px;
}

/* Специфичные стили для WhatsApp */
.whatsapp {
  background-color: #25d36610; /* Лёгкий зелёный фон */
  border: 1px solid #25d36630;
}

.telegram {
  background-color: #0088cc10; /* Лёгкий голубой фон */
  border: 1px solid #0088cc30;
}

@media (max-width: 1024px) {
  .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  .contact-link {
    padding: 6px 10px;
  }

  .contact-icon {
    width: 28px;
    height: 28px;
  }

  .contact-username,
  .contact-phone {
    font-size: 14px;
  }
}

.hero-cta-btn {
  max-width: 670px;
  width: 83%;
}

.hero-cta-note {
  max-width: 730px;
}

.dashed-wrapper p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .faq-question {
    padding: 20px 14px;
    font-size: 19px;
    padding-right: 35px;
  }
  .faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Обновленные стили для диаграмм */
.exam-results-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.exam-results {
  flex: 1;
  min-width: 200px;
  max-width: 500px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exam-results h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
  text-align: center;
}

.bars-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-wrapper {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-size: 16px;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-bg {
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  min-width: 200px;
}

.bar-fill {
  height: 100%;
  border-radius: 15px;
  position: relative;
  transition: width 1s ease-in-out;
  width: 0;
  background-color: #4caf50;
}

.bar-value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-max {
  font-size: 14px;
  color: #666;
  text-align: right;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .bar-wrapper {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bar-bg {
    min-width: 0;
    width: 100%;
  }

  .bar-label,
  .bar-max {
    font-size: 14px;
  }
}

/* TLG Page Styles */
.tlg-section {
  padding: 80px 0;
  background-color: white;
  line-height: 1.6;
}

.tlg-header {
  text-align: center;
  margin-bottom: 40px;
}

.tlg-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 5px solid #4caf50;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tlg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlg-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #222;
}

.tlg-subtitle {
  font-size: 20px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 15px;
}

.tlg-subscribers {
  font-size: 16px;
  color: #777;
}

.tlg-content {
  max-width: 800px;
  margin: 0 auto;
}

.tlg-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: #222;
  text-align: center;
}

.tlg-description {
  margin-bottom: 40px;
}

.tlg-description p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

.tlg-list {
  margin: 20px 0;
  padding-left: 20px;
}

.tlg-list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: #444;
}

.tlg-cta {
  text-align: center;
  padding: 15px 0;
}

.tlg-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  background-color: #4caf50;
  color: white;
  border: none;
}

.tlg-btn:hover {
  background-color: #3d8b40;
}

@media (max-width: 768px) {
  .tlg-section {
    padding: 50px 0;
  }

  .tlg-photo {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  .tlg-header h1 {
    font-size: 28px;
  }

  .tlg-subtitle {
    font-size: 18px;
  }

  .tlg-content h2 {
    font-size: 24px;
  }

  .tlg-description p {
    font-size: 16px;
  }

  .tlg-list li {
    font-size: 15px;
  }

  .tlg-btn {
    font-size: 16px;
    padding: 10px 25px;
  }
}

/* Стили для навигации */
.navigation {
  padding: 10px 0;
  background-color: white;
}

.navigation h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 32px;
  color: #222;
}

.navigation-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #555;
}

.navigation-section {
  margin-bottom: 40px;
}

.navigation-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.navigation-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.navigation-buttons .btn1 {
  text-align: center;
  padding: 15px 20px;
  font-size: 16px;
}

/* Стили для секции консультации */
.consultation-section {
  padding: 30px 0;
  background-color: #f5f5f5;
  text-align: center;
}

.consultation-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.consultation-block {
  background-color: #e6f5ff;
  border-radius: 20px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.consultation-text {
  font-size: 20px;
  color: #222;
  font-weight: 600;
  flex: 0 0 56%;
  margin: 0;
  text-align: left;
}

.consultation-btn {
  font-size: 18px;
  padding: 15px 30px;
  flex: 0 0 33.333%;
  white-space: nowrap;
  text-align: center;
  margin-left: auto;
}

/* Адаптив для consultation-block */
@media (max-width: 768px) {
  .consultation-block {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .consultation-text {
    text-align: center;
    margin-bottom: 15px;
    flex: 1 1 100%;
  }

  .consultation-btn {
    margin-left: 0;
    flex: 0 0 auto;
    align-self: center;
  }
}

/* Стили для Telegram сообщества */
.telegram-community {
  padding: 10px 0;
  background-color: white;
  text-align: center;
}

.telegram-community h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.telegram-description {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.telegram-btn {
  font-size: 18px;
  padding: 15px 30px;
  background-color: #0088cc;
  color: white;
  border: 2px solid #0088cc;
}

.telegram-btn:hover {
  background-color: #0088cc;
  border-color: #0088cc;
}

/* Keep Telegram button blue despite .btn1 hover styles */
.btn1.telegram-btn,
.btn1.telegram-btn:hover,
.btn1.telegram-btn:focus,
.btn1.telegram-btn:active {
  background-color: #0088cc;
  color: white;
  border-color: #0088cc;
}

.telegram-post {
  padding: 40px 0;
  background-color: #f9f9f9;
}

/* Стили для полезных постов */
.useful-posts {
  padding: 0px 0;
  background-color: #f5f5f5;
}

.useful-posts h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #222;
}

.posts-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.posts-list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.posts-list ul {
  list-style: none;
  padding: 0;
  filter: blur(2px);
  transition: filter 0.3s ease;
}

.posts-list li {
  padding: 10px 0;
  font-size: 16px;
  color: #444;
  border-bottom: 1px solid #eee;
}

.posts-list li:last-child {
  border-bottom: none;
  font-style: italic;
  color: #666;
}

.posts-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 16px;
  padding: 12px 25px;
  background-color: #4caf50;
  color: white;
  border: 2px solid #4caf50;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.posts-btn:hover {
  background-color: white;
  color: #4caf50;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Адаптив для posts-container */
@media (max-width: 768px) {
  .posts-container {
    max-width: 100%;
    padding: 0 20px;
  }

  .posts-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Адаптивность для новых секций */
@media (max-width: 1024px) {
  .navigation-buttons {
    grid-template-columns: 1fr;
  }

  .navigation-buttons .btn1 {
    font-size: 14px;
    padding: 12px 15px;
  }

  .consultation-section h2,
  .telegram-community h2,
  .useful-posts h2 {
    font-size: 24px;
  }

  .consultation-description,
  .telegram-description {
    font-size: 16px;
  }

  .consultation-btn,
  .telegram-btn {
    font-size: 16px;
    padding: 12px 25px;
  }
}

/* Стили для страницы репетитора */
.why-me {
  padding: 60px 0;
  background-color: white;
}

.why-me h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #222;
}

.why-me-content {
  margin: 0 auto;
}

.why-me-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.how-classes {
  padding: 20px 0;
  background-color: #f9f9f9;
}

.how-classes h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.how-classes-description {
  text-align: center;
  font-size: 18px;
  color: #555;

  margin-bottom: 30px;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.about-exam {
  padding: 20px 0;
  background-color: white;
}

.about-exam h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #222;
}

.exam-content {
  max-width: 800px;
  margin: 0 auto;
}

.exam-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.useful-links {
  padding: 20px 0;
  background-color: #f9f9f9;
}

.useful-links h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #222;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.links-grid .btn1 {
  text-align: center;
  padding: 15px 20px;
  font-size: 16px;
}

/* Адаптивность для страницы репетитора */
@media (max-width: 1024px) {
  .why-me h2,
  .how-classes h2,
  .about-exam h2,
  .useful-links h2 {
    font-size: 24px;
  }

  .why-me-content p,
  .exam-content p {
    font-size: 16px;
  }

  .how-classes-description {
    font-size: 16px;
  }

  .video-container iframe {
    height: 250px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для чередующихся фонов секций */
section.white-bg {
  background-color: white;
}

section.gray-bg {
  background-color: #f9f9f9;
}

section.light-gray-bg {
  background-color: #f5f5f5;
}

/* Стили для lazy loading видео */
.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: 4px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 25px solid white;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.video-play-button:hover {
  background: rgba(76, 175, 80, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail:hover .video-play-button {
  background: rgba(76, 175, 80, 0.9);
}

.video-container {
  display: none;
}

/* Стили для секции отзывов */
.reviews-section {
  padding: 20px 0;
}

.reviews-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.reviews-description {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4caf50;
}

.review-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.review-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  text-align: center;
}

.review-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.review-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* Адаптивность для секции отзывов */
@media (max-width: 1024px) {
  .reviews-section h2 {
    font-size: 24px;
  }

  .reviews-description {
    font-size: 16px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 20px;
  }
}

/* Стили для секции стоимости */
.pricing-section {
  padding: 20px 0;
}

.pricing-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.pricing-description {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4caf50;
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.pricing-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: #4caf50;
  margin-bottom: 10px;
}

.pricing-period {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.pricing-note {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* Отступ между рядами в links-grid */
.links-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Адаптивность для секции стоимости */
@media (max-width: 1024px) {
  .pricing-section h2 {
    font-size: 24px;
  }

  .pricing-description {
    font-size: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-price {
    font-size: 28px;
  }
}

/* Posts page styles */
.posts {
  padding: 60px 0;
  background-color: #ffffff;
}

.posts h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: var(--font-size-extra-large);
}

.posts-description {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: var(--font-size-body);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.posts-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.posts-filter-buttons a {
  padding: 10px 20px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: var(--font-size-small);
  font-weight: 500;
}

.posts-filter-buttons a:hover,
.posts-filter-buttons a.active {
  background-color: #4caf50;
  color: white;
  transform: translateY(-2px);
}

#posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-title {
  font-size: var(--font-size-title);
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-description {
  color: #666;
  font-size: var(--font-size-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  margin-top: auto;
}

.post-date {
  color: #888;
  font-size: var(--font-size-small);
  font-weight: 500;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: var(--font-size-caption);
  font-weight: 500;
}

.post-link {
  display: block;
  width: calc(100% - 40px);
  text-align: center;
  padding: 12px 20px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 auto;
  margin-top: auto; /* push button to bottom of card */
}

.post-link:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.no-posts {
  text-align: center;
  color: #666;
  font-size: var(--font-size-medium);
  grid-column: 1 / -1;
  padding: 40px;
}

/* Mobile responsiveness for posts */
@media (max-width: 768px) {
  .posts-filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .posts-filter-buttons a {
    width: 200px;
    text-align: center;
  }

  #posts-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card {
    margin: 0 10px;
  }

  .post-content {
    padding: 20px;
  }

  .post-title {
    font-size: var(--font-size-subtitle);
  }
  .alexey-points {
    padding-left: 20px; /* Добавляем отступ слева */
    margin-left: 0; /* Обнуляем стандартный margin */
  }
}

.curriculum-section {
  padding: 60px 20px;
}

.curriculum-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
}

.curriculum-description {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.curriculum-column {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.curriculum-level-title {
  font-size: 22px;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #4caf50;
}

.curriculum-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-topics li {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.curriculum-topics li:before {
  content: "•";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .curriculum-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .curriculum-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .curriculum-section {
    padding: 40px 15px;
  }

  .curriculum-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .curriculum-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .curriculum-column {
    padding: 20px 16px;
  }

  .curriculum-level-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .curriculum-topics li {
    font-size: 14px;
  }
}

/* Страница отдельного поста */
.post-article-section {
  padding: 80px 0 20px;
}

.post-article {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.post-back-link {
  display: inline-block;
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}

.post-back-link:hover {
  opacity: 0.8;
}

.post-article-title {
  font-size: var(--font-size-extra-large);
  color: #333;
  line-height: 1.3;
  margin-bottom: 28px;
}

.post-article-body {
  color: #444;
  font-size: var(--font-size-body);
  line-height: 1.75;
}

.post-article-body p {
  margin-bottom: 1.2em;
}

.post-article-body p:last-child {
  margin-bottom: 0;
}

.post-article-body code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-images {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.post-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.post-images--1 {
  grid-template-columns: 1fr;
}

.post-images--2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-images--3 {
  grid-template-columns: repeat(3, 1fr);
}

.post-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.post-telegram-link {
  color: #4caf50;
  font-weight: 600;
  text-decoration: none;
}

.post-telegram-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .post-article {
    padding: 24px 20px;
    margin: 0 10px;
  }

  .post-article-title {
    font-size: var(--font-size-title);
  }

  .post-images--2,
  .post-images--3 {
    grid-template-columns: 1fr;
  }
}
