/* ===================================
   Я ТВОРЮ МИР — Page-Level Styles
   =================================== */

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.07;
  top: -150px;
  right: -100px;
  filter: blur(80px);
}

.page-header::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.07;
  bottom: -80px;
  left: -80px;
  filter: blur(60px);
}

.page-header__inner {
  position: relative;
  z-index: 1;
}

/* .page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(244,161,26,0.12);
  border: 1px solid rgba(244,161,26,0.25);
  border-radius: var(--radius-full);
} */

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.page-header__title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.68);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.breadcrumb__item {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: rgba(255,255,255,0.85);
}

.breadcrumb__item--current {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.breadcrumb__sep {
  color: rgba(255,255,255,0.25);
  font-size: var(--text-xs);
}

/* === SECTION UTILITIES === */
.section {
  padding: var(--space-20) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section--warm {
  background: var(--color-cream);
}

.section--accent-bg {
  background: var(--color-primary-ultra-light);
}

.section--secondary-bg {
  background: var(--color-secondary-ultra-light);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-title--white { color: var(--color-white); }

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.section-subtitle--white { color: rgba(255,255,255,0.65); }

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* === CARD BASE === */
.card {
  background: var(--color-white);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge--primary {
  background: var(--color-primary-ultra-light);
  color: var(--color-primary);
}

.badge--accent {
  background: var(--color-accent-ultra-light);
  color: var(--color-accent-dark);
}

.badge--secondary {
  background: var(--color-secondary-ultra-light);
  color: var(--color-secondary);
}

.badge--live {
  background: var(--color-primary);
  color: var(--color-white);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(230,57,70,0); }
}

.badge--gray {
  background: var(--color-mist);
  color: var(--color-gray-600);
}

/* === BUTTONS === */
/* .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(45,106,159,0.25);
}

.btn--secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline--white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}

.btn--outline--white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-700);
  border-color: var(--color-gray-200);
}

.btn--ghost:hover {
  background: var(--color-cream);
  border-color: var(--color-gray-300);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  border-color: transparent;
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,161,26,0.4);
} */

/* Width utility */
.w-full { width: 100%; }

/* === FORM ELEMENTS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-medium);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-300);
}

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

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  line-height: var(--leading-normal);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* === CONTACT CARD === */
.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-light);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--color-primary-ultra-light);
}

.contact-card__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-1);
}

.contact-card__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.contact-card__link {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

.contact-card__link:hover {
  color: var(--color-primary);
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

/* === DIVIDERS === */
.divider {
  height: 1px;
  background: var(--color-gray-100);
  margin: var(--space-8) 0;
}

.divider--accent {
  height: 3px;
  width: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: var(--space-4) auto var(--space-8);
}

/* === RESPONSIVE CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section--sm {
    padding: var(--space-10) 0;
  }

  .page-header {
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .cta-banner {
    padding: var(--space-12) var(--space-6);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-12) 0;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* === HELPER CLASSES === */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* === TABLE RESULTS === */
        /* Основные стили для контейнера */
        .table-responsive-custom {
            display: block;
            width: 100%;
            overflow-x: auto;
            padding-top: 1rem; /* pt-3 аналог = 1rem */
            -webkit-overflow-scrolling: touch;
            border-radius: var(--radius-xl);
            border: 2px solid  var(--color-secondary-light);
        }

        /* Стили таблицы */
        .custom-table {
            width: 100%;
            margin-bottom: 1rem;
            background-color: transparent;
            border-collapse: collapse;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            font-size: 0.9rem;
        }

        /* Стили для ячеек заголовка и тела */
        .custom-table th,
        .custom-table td {
            padding: 0.75rem;
            vertical-align: middle;
           
        }

        /* Заголовок таблицы */
        .custom-table thead th {
            vertical-align: bottom;
            border-bottom: 2px solid  var(--color-secondary-light);
            background-color: var(--color-cream);
            color: var(--color-primary-dark);
            font-weight: 600;
            text-align: left;
            white-space: nowrap;
        }

        /* Убираем двойную границу в заголовке */
        .custom-table thead th:first-child {
            border-top: none;
        }

        /* Эффект при наведении на строку */
        .custom-table tbody tr:hover {
            background-color: var(--color-secondary-ultra-light);
        }

        /* Стили для ячеек тела таблицы */
        .custom-table tbody td {
            border-bottom: 1px solid var(--color-secondary-light);
            word-break: break-word;
        }
        .custom-table tbody tr:last-child td {
            border-bottom: none;
        }

        /* Скрытие на мобильных устройствах (аналог d-none d-md-table-cell) */
        /* На экранах меньше 768px скрываем колонки Регион и Организация */
        @media (max-width: 767.98px) {
            .hide-on-mobile {
                display: none !important;
            }
        }

        /* На экранах от 768px и выше показываем */
        @media (min-width: 768px) {
            .hide-on-mobile {
                display: table-cell;
            }
        }

        /* Стили для картинок внутри таблицы */
        .custom-table img {
            max-width: 100%;
            height: auto;
            transition: transform 0.2s ease;
        }

        .custom-table img.interactive:hover {
            transform: scale(1.05);
        }

        /* Стили для ссылок */
        .custom-table a {
            text-decoration: none;
            display: inline-block;
        }

       

        /* Стили для заголовков на мобильных устройствах */
        @media (max-width: 767.98px) {
            .custom-table th:not(.hide-on-mobile),
            .custom-table td:not(.hide-on-mobile) {
                min-width: 150px;
            }
            
            .custom-table th:last-child,
            .custom-table td:last-child {
                min-width: 80px;
            }
        }

        /* Стили для скролла */
        .table-responsive-custom::-webkit-scrollbar {
            height: 8px;
            background-color: #f1f1f1;
        }

        .table-responsive-custom::-webkit-scrollbar-thumb {
            background-color: #c1c1c1;
            border-radius: 4px;
        }

        .table-responsive-custom::-webkit-scrollbar-thumb:hover {
            background-color: #a8a8a8;
        }
    
