/* === АгеевПроект — style.css === */

/* SVG icon sizes (Tailwind-compatible utility classes) */
svg { flex-shrink: 0; }
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; } .h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-\[18px\] { width: 18px; } .h-\[18px\] { height: 18px; }
.flex-shrink-0 { flex-shrink: 0; }

:root {
  --c-primary: #6a8d73;
  --c-primary-dark: #5b7653;
  --c-primary-light: #8fb396;
  --c-accent: #c8a45c;
  --c-accent-light: #f5ecd7;
  --c-bg: #f7f5f0;
  --c-bg-white: #ffffff;
  --c-text: #1a1a1a;
  --c-text-muted: #6b6b6b;
  --c-border: #e8e4dd;
}

html { scroll-behavior: smooth; }

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image hover */
.img-hover { overflow: hidden; border-radius: 16px; }
.img-hover img { transition: transform 0.5s ease; }
.img-hover:hover img { transform: scale(1.05); }

/* Card hover */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* === .prose — article typography === */
.prose { color: var(--c-text); line-height: 1.8; font-size: 1.05rem; }
.prose h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin: 0 0 1.25rem; }
.prose h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: var(--c-primary-dark); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose strong { font-weight: 700; color: var(--c-text); }
.prose ul { list-style-type: disc; padding-left: 1.75rem; margin-bottom: 1.25rem; }
.prose ol { list-style-type: decimal; padding-left: 1.75rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose li::marker { color: var(--c-primary); }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-primary-dark); }
.prose blockquote { border-left: 4px solid var(--c-primary); padding: 1rem 1.5rem; margin: 1.75rem 0; background: #f0f5f1; border-radius: 0 12px 12px 0; font-style: italic; color: #444; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.9375rem; }
.prose th { background: #f0f5f1; color: var(--c-primary-dark); padding: 0.75rem 1rem; text-align: left; font-weight: 700; border: 1px solid var(--c-border); }
.prose td { padding: 0.75rem 1rem; border: 1px solid var(--c-border); }
.prose tr:nth-child(even) td { background: #fafaf8; }
.prose figure { margin: 2rem 0; text-align: center; }
.prose figure img { border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.prose figcaption { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 0.5rem; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2rem 0; }

/* FAQ details */
.prose details { border: 1px solid var(--c-border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; }
.prose summary { cursor: pointer; font-weight: 700; color: var(--c-primary-dark); font-size: 1rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.prose summary::-webkit-details-marker { display: none; }
.prose details p { margin-top: 0.75rem; font-size: 0.9375rem; color: #555; }

/* FAQ section (non-prose) */
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

@media (max-width: 768px) {
  .prose h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.35rem; }
  .prose { font-size: 1rem; }
}
