/* ================================
   СТИЛИ ДЛЯ СЕКЦИИ "ЛИНИЯ OSO DE MIEL"
   ================================ */

.about-section {
  margin: 4rem 0;
}

.breed-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--accent-lighter);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 78, 42, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  color: var(--accent-dark);
  margin: 0 0 1.25rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.feature-card li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--accent-light);
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.feature-card li:last-child {
  border-bottom: none;
}

/* ================================
   СТИЛИ ДЛЯ СЕКЦИИ "РАСШИФРОВКА ТЕСТОВ"
   ================================ */

.health-section {
  margin: 4rem 0;
}

.test-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent-light);
  height: 100%;
  transition: transform 0.3s ease;
}

.test-card:hover {
  transform: translateY(-3px);
}

.test-card h3 {
  color: var(--accent-dark);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.test-result {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 1rem 0;
  display: inline-block;
}

.test-result.good {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.test-result.carrier {
  background: #FFF3E0;
  color: #EF6C00;
  border: 1px solid #FFE0B2;
}

.test-card p {
  color: var(--muted);
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* ================================
   ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ
   ================================ */

.section-title {
  color: var(--accent-dark);
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.highlight {
  background: var(--accent-glow);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-top: 2rem;
}

.highlight h3 {
  color: var(--accent-dark);
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--dark);
  font-size: 1rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ================================
   АДАПТИВНОСТЬ
   ================================ */

@media (max-width: 768px) {
  .about-section,
  .health-section {
    margin: 3rem 0;
  }
  
  .breed-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  .test-card {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-title::after {
    width: 50px;
    height: 2px;
  }
  
  .highlight {
    padding: 1.5rem;
  }
  
  .highlight h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-section,
  .health-section {
    margin: 2.5rem 0;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .feature-card li {
    font-size: 0.9rem;
  }
  
  .test-card h3 {
    font-size: 1.1rem;
  }
  
  .test-card p {
    font-size: 0.9rem;
  }
  
  .highlight {
    padding: 1.25rem;
  }
  
  .feature-list li {
    font-size: 0.9rem;
  }
}

/* ================================
   АНИМАЦИИ ДЛЯ ЭЛЕМЕНТОВ
   ================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.sequential-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.sequential-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.sequential-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.sequential-children .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* ================================
   ЦЕНТРИРОВАНИЕ И ВЫРАВНИВАНИЕ СЕКЦИЙ
   ================================ */

/* Обеспечиваем центрирование для всех контейнеров */
.about-section.container,
.health-section.container,
.contact-section.container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
  padding: 0 16px;
}

/* Центрирование содержимого в секциях */
.about-section .intro-block,
.health-section .intro-block,
.contact-section .intro-block {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Центрирование грида карточек */
.breed-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  justify-items: center;
  margin: 2.5rem auto;
  max-width: 1000px;
}

/* Центрирование карточек внутри грида */
.feature-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Центрирование карточек с тестами */
.health-tests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  justify-items: center;
  margin: 2.5rem auto;
  max-width: 1000px;
}

.test-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Центрирование заголовков секций */
.section-title {
  text-align: center;
}

.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Центрирование текста в highlight блоке */
.highlight {
  text-align: center;
}

.highlight .feature-list {

  text-align: left;
}

/* Центрирование кнопок CTA */
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Центрирование кнопки "Наверх" */
.back-to-top {
  text-align: center;
  margin: 3rem auto;
}

/* ================================
   ИСПРАВЛЕНИЯ ДЛЯ АДАПТИВНОСТИ
   ================================ */

@media (max-width: 1024px) {
  .breed-features,
  .health-tests {
    max-width: 800px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .about-section.container,
  .health-section.container,
  .contact-section.container {
    padding: 0 12px;
  }
  
  .breed-features,
  .health-tests {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .feature-card,
  .test-card {
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-section.container,
  .health-section.container,
  .contact-section.container {
    padding: 0 8px;
  }
  
  .breed-features,
  .health-tests {
    max-width: 100%;
  }
  
  .feature-card,
  .test-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    font-size: 2.2rem;
  }
}