* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
  font-weight: 400;
}

.container {
  max-width: 1280px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ==========================================================================
   ШАПКА 
   ========================================================================== */

.top-bar {
  background: #F9F9F9;
  border-bottom: 1px solid #e5e7eb;
}

.logo-img {
  height: 90px;
  width: auto;
}

.logo-text {
  font-weight: 500;
  font-size: 18px;
  line-height: 25px;
  color: #132F52;
  white-space: nowrap;
}

.social-icons img {
  width: 25px;
  height: 25px;
}

.accessibility-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
}

.eye-icon {
  font-size: 18px;
}

.btn-outline-secondary:hover {
  background-color: rgba(67, 149, 255, 0.3);
  color: white;
}

/* ==========================================================================
   НАВИГАЦИЯ 
   ========================================================================== */

.navbar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px auto 0 auto;
  max-width: 1200px;
}

.navbar .nav-link {
  color: #132F52;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.navbar .nav-link:hover {
  color: #2563eb;
}

.dropdown-menu {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: 6px;
}

.navbar {
  border-radius: 10px !important;
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */

.breadcrumb {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #E1EDFE;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 0;
  border-radius: 10px;
  padding-left: 33px;
}

.breadcrumb-item a {
  color: #456082;
  text-decoration: none;
}

/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА (hero)
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #385BAB 0%, #C0FFBC 50%, #C0FFBC 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 45px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  max-width: 900px;
  margin: 0 auto 3rem;
}

.search-form {
  background: white;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.search-form input {
  border: none;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
}

.search-form .btn-primary {
  background: #2563eb;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 200px;
}

.search-form .btn-primary:hover {
  background: #1d4ed8;
}

.transition-hover {
  transition: all 0.25s ease;
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
}

.card-body,
.btn-primary.btn-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-primary.btn-sm {
  background: linear-gradient(to right, #6CACFF, #4395FF);
  border: none;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.btn-primary.btn-sm:hover {
  background: linear-gradient(to right, #539dff, #1e80ff);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

@media (max-width: 992px) {
  .card-body, .btn-primary.btn-lg {
    min-height: 100px;
    font-size: 1.35rem;
  }
}

@media (max-width: 992px) {
  .category-btn {
    font-size: 1.1rem;
    min-height: 100px;
  }
}

@media (max-width: 576px) {
  .category-btn {
    font-size: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   НОВОСТИ
   ========================================================================== */

.news-section h1 {
  font-size: 38px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 48px;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-img-top {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  height: 240px;
  object-fit: cover;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
}

.card-text {
  font-size: 15px;
  color: #475569;
}

.text-muted {
  font-size: 13px;
}

.btn-primary.show-more {
  background: linear-gradient(to right, #6CACFF, #4395FF);
  border: none;
  font-weight: 600;
  padding: 15px 72px;
  font-size: 16.5px;
  transition: all 0.2s;
}

.btn-primary.show-more:hover {
  background: linear-gradient(to right, #4395FF, #6CACFF);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 149, 255, 0.4);
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */

footer {
  background: white;
  padding: 60px 0 40px;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

footer img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   АДАПТИВНЫЕ ПРАВКИ
   ========================================================================== */

@media (max-width: 1400px) {
  .container {
    max-width: 1180px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .card-img-top {
    height: 220px;
  }
}

@media (max-width: 1200px) {
  .hero {
    padding: 100px 0 120px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .news-section h1 {
    font-size: 34px;
  }
}

@media (max-width: 992px) {
  .logo-img {
    height: 70px;
  }
  .logo-text {
    font-size: 16px;
  }
  .top-bar {
    height: auto;
    padding: 16px 0;
  }
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 100px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    font-size: 16px;
  }
  .search-form input, .search-form button {
    height: 52px;
    font-size: 15px;
  }
  .news-section h1 {
    font-size: 28px;
  }
  .card-img-top {
    height: 180px;
  }
}

.navbar .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 1050 !important;
  margin-top: 4px !important;
  overflow: visible !important;
}

.main-nav, .navbar {
  overflow: visible !important;
}

/* ==========================================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ
   ========================================================================== */

.fade-in {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Для карточек услуг */
.digest-card {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.fade-in.visible .digest-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in.visible .digest-card:nth-child(1) { transition-delay: 0.1s; }
.fade-in.visible .digest-card:nth-child(2) { transition-delay: 0.2s; }
.fade-in.visible .digest-card:nth-child(3) { transition-delay: 0.3s; }
.fade-in.visible .digest-card:nth-child(4) { transition-delay: 0.4s; }
.fade-in.visible .digest-card:nth-child(5) { transition-delay: 0.5s; }
.fade-in.visible .digest-card:nth-child(6) { transition-delay: 0.6s; }

/* Для новостей */
.news-featured-card, .news-list-card {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.fade-in.visible .news-featured-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.1s;
}

.fade-in.visible .news-list-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.2s;
}

.news-list-item {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out !important;
    opacity: 0 !important;
    transform: translateX(-10px) !important;
}

.fade-in.visible .news-list-item {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.fade-in.visible .news-list-item:nth-child(1) { transition-delay: 0.1s; }
.fade-in.visible .news-list-item:nth-child(2) { transition-delay: 0.2s; }
.fade-in.visible .news-list-item:nth-child(3) { transition-delay: 0.3s; }
.fade-in.visible .news-list-item:nth-child(4) { transition-delay: 0.4s; }
.fade-in.visible .news-list-item:nth-child(5) { transition-delay: 0.5s; }

/* ==========================================================================
   СТИЛИ ДЛЯ КНОПКИ СЛАБОВИДЯЩИХ
   ========================================================================== */

.btn-outline-vision {
    border: 2px solid #132F52;
    color: #132F52;
    background: transparent;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-vision:hover {
    background: #132F52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 47, 82, 0.2);
}

.btn-outline-vision:hover img {
    filter: brightness(10) !important;
}

.btn-outline-vision img {
    transition: filter 0.3s ease;
}


