body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
  color: #2d3748;
}

.hero-section {
  background-color: #f8f6f3;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
}

.card-container {
  display: flex;
  max-width: 1024px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
}

.content-column {
  flex-basis: 55%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.25;
}

h1 .highlight {
  color: #16a34a;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.author-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.author-photo-wrapper {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid #16a34a;
  padding: 3px;
}

.author-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  margin-left: 1rem;
}

.author-quote {
  margin: 0;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.author-name {
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: #2d3748;
}

.cta-section {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.download-button {
  background-color: #16a34a;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.75rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #15803d;
}

.price {
  font-size: 2.5rem;
  font-weight: 600;
  color: #cbd5e0;
  text-decoration: line-through;
  margin-left: 1.5rem;
}

.downloads-count {
  display: flex;
  align-items: center;
  color: #718096;
  font-size: 0.9rem;
  padding-left: 0.25rem;
}

.downloads-count svg {
  margin-right: 0.5rem;
}

.image-column {
  flex-basis: 45%;
  position: relative;
  display: flex;
  align-items: center;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 24px 24px 0;
}

.info-box {
  position: absolute;
  bottom: 2rem;
  left: -2.5rem;
  background-color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 150px;
}

.info-number {
  font-size: 2.75rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.info-box p {
  margin: 0;
  color: #718096;
  font-size: 0.8rem;
}

.article-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
}

.text-container {
  max-width: 720px;
  width: 100%;
}

.article-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
}

.article-section h3 {
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

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

.article-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

.food-list {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
}

.food-list li {
  margin-bottom: 2.5rem;
}

.food-list h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
  text-transform: none;
}

.additives-list {
  list-style-type: "— ";
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.additives-list.bulleted {
  list-style-type: disc;
}

.additives-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.final-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comments-section {
  background-color: #f7f6f2;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.comments-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 2rem 0;
}

.comment-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.comment-card p {
  margin: 0;
  line-height: 1.6;
}

.comment-author {
  margin-top: 1rem !important;
  font-weight: 600;
  color: #4a5568;
}

.comment-form {
  margin-top: 3rem;
}

.comment-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row input {
  flex-grow: 1;
  margin-bottom: 0;
}

.form-row button {
  background-color: #16a34a;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 0 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-row button:hover {
  background-color: #15803d;
}

footer {
  background-color: #2d3748;
  color: #a0aec0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  max-width: 720px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

footer a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 992px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  .card-container {
    flex-direction: column;
    overflow: hidden;
  }
  .content-column {
    flex-basis: auto;
    padding: 2rem;
    order: 2;
  }
  .image-column {
    flex-basis: auto;
    order: 1;
    width: 100%;
    height: 350px;
  }
  .main-image {
    border-radius: 24px 24px 0 0;
  }
  .info-box {
    left: 1.5rem;
    bottom: 1.5rem;
  }
  h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .article-content,
  .comments-section {
    padding: 2rem 1rem;
  }
  .article-section h2,
  .comments-section h2 {
    font-size: 1.8rem;
  }
  .article-section p,
  .food-list {
    font-size: 1rem;
    line-height: 1.7;
  }
  .food-list h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .content-column {
    padding: 1.5rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .price {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .final-cta .cta-section {
    align-items: center;
  }
  .form-row {
    flex-direction: column;
  }
}
.cta-section .price {
  font-size: 2.5rem;
  font-weight: 600;
  color: black;
  margin-left: 1.5rem;
  position: relative;
  text-decoration: none;
}

.cta-section .price::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.2rem;
  right: 0.2rem;
  height: 0.4rem;
  background-color: #ff0000;
  transform: translateY(-50%) rotate(-25deg);
  border-radius: 0.2rem;
}

.final-cta .cta-section .price {
  font-size: 2.5rem;
  font-weight: 600;
  color: black;
  margin-left: 1.5rem;
  position: relative;
  text-decoration: none;
}

.final-cta .cta-section .price::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.2rem;
  right: 0.2rem;
  height: 0.4rem;
  background-color: #ff0000;
  transform: translateY(-50%) rotate(-25deg);
  border-radius: 0.2rem;
}
/* --- Стили для всплывающего окна (Modal) --- */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Остается на месте при скролле */
  z-index: 1000; /* Поверх всего остального контента */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Добавляет скролл, если нужно */
  background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-in-out;
}

.modal-content h2 {
  margin-top: 0;
  color: #1a202c;
}

.modal-content p,
.modal-content li {
  line-height: 1.7;
  color: #4a5568;
}

.modal-content ul {
  padding-left: 20px;
}

#modalText {
  max-height: 60vh; /* Максимальная высота текста */
  overflow-y: auto; /* Полоса прокрутки, если текст не помещается */
  padding-right: 15px; /* Чтобы скроллбар не наезжал на текст */
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Анимации для появления */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
