.main-content {
  flex: 1 0 auto;
  margin: 0;
  /* сверху 60px, справа 0, снизу 80px, слева 0 */
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: auto;
  display: flex;
  justify-content: center;
  /* Горизонтальное центрирование */
}

.big-text-section {
  width: 100%;
  max-width: 1400px;
  margin: 10px auto;
  /* Центрирование по горизонтали */
  padding: 5px;
  /* Уменьшили padding, чтобы сократить лишнюю высоту */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: auto;
  /* Высота строго по содержимому */
  box-sizing: border-box;
  /* Учитываем padding в высоте */
}

.big-text-section h2 {
  font-size: 36px;
  margin: 0 50px;
  /* Добавляем 20px отступы слева и справа */
  color: #111;
}

.big-text-section h3 {
  text-align: left;
  text-indent: 2em;
  margin: 20px 0 10px;
  font-size: 24px;
  color: #333;
}

.big-text-section p {
  font-size: 20px;
  line-height: 1.6;
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
  text-align: justify;
  text-indent: 2em;
  color: #111;
  padding: 0 10px;
  /* необязательно, но визуально приятно */
}

.ai-banner {
  /*первая картинка в статье*/
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.big-text-section p.date {
  text-align: right;
  padding-right: 2em;
  text-indent: 0;
  margin-top: 0;
  margin-bottom: 2px;
  line-height: 1.1;
}

.image-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 20px;
  display: block;
  position: relative;
  line-height: 0;
}

.zoomable {
  width: 100%;
  border-radius: 10px;
  cursor: zoom-in;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zoomed-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 20px;
  cursor: zoom-out;
  z-index: 9999;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.zoomed-image.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
}

.video-wrapper {
  position: relative;
  width: 860px;
  height: 484px;
  /* 16:9 */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

.caption {
  /*подпись картинок*/
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

.animation-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.animation-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: transparent;
}

.animation-container:hover {
  border-radius: 20px;
  /* чуть сильнее скругление */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  /* мягкая тень */
  transition: all 0.3s ease;
  /* плавный эффект */
}

.custom-iframe {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 780px) {
  .video-wrapper {
    width: 100%;
    max-width: none;
    height: calc(100vw * 9 / 16);
    /* 16:9 */
    margin: 0 auto;
    border-radius: 15px;
  }

  .big-text-section h2 {
    margin: 0 10px;
    font-size: 24px;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .animation-container {
    aspect-ratio: 16 / 9;

    border-radius: 10px;
  }

  .animation-container iframe {
    border-radius: 10px;
  }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .main-content {
    display: block;
  }

  .big-text-section {
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
  }

  .big-text-section p {
    margin: 10px 0;
    padding: 0 5px;
    font-size: 16px;
    text-align: justify;
    text-indent: 2em;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
  }

  .big-text-section h2 {
    font-size: 20px;
  }
}

.header-center a {
  color: white;
  text-decoration: none;
}

.header-center a:visited {
  color: white;
}
