:root {
  --primary: #1a1a1a;
  --secondary: #4a4a4a;
  --accent: #0066ff;
  --light: #f5f5f5;
  --border: #e0e0e0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--primary);
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  transition:
    filter .3s ease-out,
    transform .4s ease;
}
img:hover {
  filter: drop-shadow(2px 4px 6px black);
  transform: scale(1.5);
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary) !important;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

/* Hero Section */
.hero-cover {
  position: relative;
  height: 40vh;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-cover img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.hero-card {
  color: white;
  max-width: 700px;
}

.hero-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-card p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

/* Section Titles */
.section-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

/* Article Cards */
.card-article {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.card-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-article img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  z-index: 10;
  position: relative;
  padding: 1.5rem;
  background-color: white;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--accent);
}

.card-text {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.8rem;
  color: #8a8a8a;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: #f9f9f9;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-contact {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact strong {
  color: var(--primary);
  font-size: 1rem;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  text-align: center;
  color: #8a8a8a;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-card h1 {
    font-size: 2rem;
  }

  .hero-overlay {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}
/* Анимация успеха */
.success-animation {
  animation: bounceIn 1s ease-in-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Круги для иконок инфографики */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.infographic-item:hover .icon-circle {
  transform: translateY(-5px);
}

/* Стили для SVG иконок */
.icon-circle svg {
  width: 30px;
  height: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-circle svg {
    width: 24px;
    height: 24px;
  }
}
.form-success {
  display: none;
}
.form-error {
  display: none;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
