.navigation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  margin: 0 auto;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: opacity 0.2s;
}

.nav-menu li a:hover {
  opacity: 0.8;
}

.nav-menu li.active a {
  border-bottom: 2px solid white;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-brand a {
    font-size: 1rem;
  }
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 24px;
  }
}
/* MortgageCalculator.css - обновленный блок без частиц */

.mortgage-calculator-page {
  max-width: 100%;
  margin: 0 auto;
  background: #f3f4f6;
  min-height: 100vh;
  padding: 30px;
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: start;
  min-height: calc(100vh - 60px);
}

.calculator-form-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  top: 90px;
  max-height: 100vh;
}

/* 🔥 Карточка результатов */
.results-white-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  margin-bottom: 0;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 🔥 Пустое состояние для ResultsCalcSection */
.results-white-card .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 100px;
}

.results-white-card .empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.results-white-card .empty-state .empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.results-white-card .empty-state .empty-description {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

/* 🔥 Состояние загрузки */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  font-size: 1.125rem;
  color: #667eea;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 🔥 Состояние ошибки */
.error-state {
  background: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #dc2626;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-icon {
  font-size: 1.5rem;
}

.error-text {
  flex: 1;
}

.error-text strong {
  display: block;
  font-size: 0.95rem;
}

.error-text p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.error-retry-btn {
  padding: 0.4rem 1.2rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.error-retry-btn:hover {
  background: #b91c1c;
}

/* ============================================================
   🔥 БЛОК В СТИЛЕ ЛЕНДИНГА (БЕЗ ЧАСТИЦ)
   ============================================================ */
.empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  height: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.empty-results-content {
  max-width: 600px;
  width: 100%;
}

/* Бейдж статуса */
.empty-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  font-family: inherit;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
}

/* Заголовок */
.empty-results-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  font-family: inherit;
}

.empty-results-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Описание */
.empty-results-description {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-family: inherit;
}

/* Шаги-индикаторы */
.empty-results-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.step-item:hover {
  background: #f8f9ff;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: inherit;
}

.step-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 0.5rem;
}

.step-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  font-family: inherit;
}

.step-status {
  font-size: 1rem;
}

/* Подсказка */
.empty-results-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tip-icon {
  font-size: 1.25rem;
}

.tip-text {
  font-size: 0.875rem;
  color: #92400e;
  font-family: inherit;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшеты и ноутбуки */
@media (max-width: 1200px) {
  .mortgage-calculator-page {
    padding: 1.5rem;
    overflow: visible;
  }

  .calculator {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .calculator-form-wrapper {
    position: static;
    height: auto;
    overflow: visible;
  }

  .calculator-form {
    overflow: visible;
    padding-right: 0;
  }

  .calculator-results {
    overflow: visible;
    padding-right: 0;
  }

  .empty-results {
    min-height: 400px;
    height: auto;
    padding: 2rem 1.5rem;
  }

  .empty-results-title {
    font-size: 2rem;
  }

  .empty-results-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .mortgage-calculator-page {
    padding: 1rem;
  }

  .calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    min-height: auto;
  }

  .calculator-form-wrapper {
    gap: 1rem;
  }

  .results-white-card {
    padding: 1rem;
  }

  .results-white-card .empty-state {
    min-height: 80px;
    padding: 1rem 0.5rem;
  }

  .results-white-card .empty-state .empty-icon {
    font-size: 1.5rem;
  }

  .results-white-card .empty-state .empty-title {
    font-size: 0.85rem;
  }

  .results-white-card .empty-state .empty-description {
    font-size: 0.75rem;
  }

  .error-content {
    flex-direction: column;
    text-align: center;
  }

  .error-retry-btn {
    width: 100%;
  }

  .empty-results {
    min-height: 350px;
    padding: 1.5rem 1rem;
    height: auto;
  }

  .empty-results-title {
    font-size: 1.5rem;
  }

  .empty-results-description {
    font-size: 0.95rem;
  }

  .empty-results-steps {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .empty-results-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .loading-state {
    min-height: 80px;
  }

  .spinner {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
  .mortgage-calculator-page {
    padding: 0.5rem;
  }

  .calculator {
    gap: 0.75rem;
  }

  .results-white-card {
    padding: 0.75rem;
  }

  .results-white-card .empty-state {
    min-height: 60px;
    padding: 0.75rem 0.25rem;
  }

  .results-white-card .empty-state .empty-icon {
    font-size: 1.25rem;
  }

  .results-white-card .empty-state .empty-title {
    font-size: 0.8rem;
  }

  .results-white-card .empty-state .empty-description {
    font-size: 0.7rem;
  }

  .empty-results {
    min-height: 300px;
    padding: 1rem 0.75rem;
    height: auto;
  }

  .empty-results-title {
    font-size: 1.25rem;
  }

  .empty-results-description {
    font-size: 0.85rem;
  }

  .step-item {
    padding: 0.35rem;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .empty-results-tip {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
/* ResultsSection.css - в стиле FormSection */

/* ============================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================================ */
.results-calc-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

/* ============================================================
   БЛОК РЕЗУЛЬТАТОВ
   ============================================================ */
.results-calc-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.results-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   ЗАГОЛОВОК (как в FormSection)
   ============================================================ */
.results-calc-title {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
}

/* ============================================================
   ОСНОВНАЯ СУММА
   ============================================================ */
.results-calc-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2563eb;
  padding: 0.5rem 0 0.75rem 0;
}

/* ============================================================
   ДЕТАЛИ (в стиле полей FormSection)
   ============================================================ */
.results-calc-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.results-calc-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.results-calc-detail-item:last-child {
  border-bottom: none;
}

/* ============================================================
   ЛЕЙБЛЫ (как в FormSection)
   ============================================================ */
.detail-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
}

/* ============================================================
   ЗНАЧЕНИЯ
   ============================================================ */
.detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.detail-percent {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b7280;
  margin-left: 0.25rem;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
  .results-calc-section {
    padding: 1rem;
  }

  .results-calc-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .results-calc-value {
    font-size: 1.5rem;
    padding: 0.35rem 0 0.5rem 0;
  }

  .detail-label {
    font-size: 0.8125rem;
  }

  .detail-value {
    font-size: 0.8125rem;
  }

  .results-calc-detail-item {
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .results-calc-section {
    padding: 0.75rem;
  }

  .results-calc-value {
    font-size: 1.25rem;
  }

  .detail-label {
    font-size: 0.75rem;
  }

  .detail-value {
    font-size: 0.75rem;
  }

  .results-calc-details {
    gap: 0.35rem;
  }
}
/* OfferBankSection.css - только для OfferBankSection */

/* Контейнер для заголовка и фильтров */
.banks-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
  background: white;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Заголовок предложений банков */
.banks-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #1f2937;
  padding-bottom: 0.75rem;
}

/* Фильтры банков */
.banks-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bank-filter-select {
  padding: 0.4rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  background: white;
  min-width: 150px;
}

.bank-filter-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Кнопка сброса фильтров */
.reset-filters-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: #9ca3af;
  white-space: nowrap;
  cursor: not-allowed;
}

.reset-filters-btn.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  cursor: pointer;
}

.reset-filters-btn.active:hover {
  background: #dc2626;
}

/* Галочка для завышения */
.toggle-overstatement {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #4b5563;
  padding: 0.3rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.toggle-overstatement input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #667eea;
}

.toggle-overstatement span {
  user-select: none;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .banks-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .banks-filters {
    flex-direction: column;
    width: 100%;
  }

  .bank-filter-select {
    min-width: 100%;
    width: 100%;
  }

  .reset-filters-btn {
    width: 100%;
    justify-content: center;
  }

  .toggle-overstatement {
    align-self: flex-start;
  }
}
/* src/components/NoResults/NoResults.css */
.no-results {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.no-results p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.no-results button {
  padding: 0.5rem 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.no-results button:hover {
  background: #5b6fc7;
}

@media (max-width: 768px) {
  .no-results {
    padding: 2rem;
  }
}
/* src/components/BankCategory/BankCategory.css */
.category-group {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9fafb;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.banks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: white;
}

@media (max-width: 768px) {
  .banks-list {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .category-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* src/components/BankCard/BankCard.css */

/* Карточка банка */
.bank-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}

.bank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bank-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-width: 2px;
}

/* Верхняя часть карточки */
.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.bank-info {
  flex: 1;
}

.bank-program {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.bank-rate {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  margin-top: 0.25rem;
}

.payment-info {
  text-align: right;
  min-width: 120px;
}

.payment-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.payment-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #16a34a;
  margin: 0;
}

/* Ставки для short программ */
.bank-rates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.bank-rates .bank-rate {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
}

.bank-rates-two-contracts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

/* Обертка для платежей с субсидией */
.payment-values-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.payment-values-wrapper .payment-value {
  font-size: 1rem;
}

.payment-values-wrapper .payment-with-subsidy {
  color: #16a34a;
  font-weight: 600;
}

.payment-values-wrapper .payment-after-subsidy {
  color: #ea580c;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Список деталей */
.bank-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
}

.bank-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.bank-detail-label {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
}

.bank-detail-value {
  font-weight: 600;
  color: #1f2937;
  text-align: right;
  word-break: break-word;
}

.bank-detail-value.positive {
  color: #16a34a;
}

.bank-detail-value.warning {
  color: #ea580c;
}

/* Сверхлимит */
.bank-excess {
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
  font-weight: 500;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .bank-card-header {
    flex-direction: column;
  }

  .payment-info {
    text-align: left;
    margin-top: 0.5rem;
    min-width: auto;
    width: 100%;
  }

  .payment-values-wrapper {
    align-items: flex-start;
  }
}

/* 🔥 Контейнер для динамической информации */
.bank-card-dynamic-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  margin: 4px 0 8px 0;
  flex-wrap: wrap;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  min-height: 28px;
  cursor: default;
  user-select: none;
}

.bank-card-dynamic-info:empty {
  display: none;
}

.bank-card-dynamic-info .dynamic-info-display {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1f2937;
}

.bank-card-dynamic-info .dynamic-info-icon {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

/* 🔥 Разделитель между бейджами */
.dynamic-badge-divider {
  color: #d1d5db;
  font-weight: 300;
  font-size: 0.7rem;
  padding: 0 2px;
}
/* ============================================================
   ПРЕДУПРЕЖДЕНИЕ О ПРЕВЫШЕНИИ ЛИМИТА (ПОВЕРХ КАРТОЧКИ)
   ============================================================ */

.bank-card {
  position: relative;
  overflow: visible !important; /* 🔥 Меняем на visible, чтобы бейджи не обрезались */
}

/* Оверлей должен быть внутри карточки, но не обрезать бейджи */
.bank-card .bank-excess-warning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  padding: 1.5rem;
  border-radius: 0.5rem;

  animation: bankFadeInOverlay 0.4s ease-out;

  pointer-events: none;

  /* 🔥 Чтобы оверлей не вылезал за пределы карточки */
  overflow: hidden;
}

.bank-card .bank-excess-warning-overlay * {
  pointer-events: auto;
}

/* 🔥 Бейджи должны быть ПОВЕРХ оверлея */
.bank-card .bank-card-badges {
  position: relative;
  z-index: 20; /* Выше чем у оверлея (z-index: 10) */
}

/* 🔥 Каждый бейдж тоже поверх */
.bank-card .bank-card-badge {
  position: relative;
  z-index: 20;
}

@keyframes bankFadeInOverlay {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bank-card .excess-overlay-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  animation: bankPulseIcon 1.5s ease-in-out infinite;
}

@keyframes bankPulseIcon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.bank-card .excess-overlay-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bank-card .excess-overlay-hint {
  font-size: 0.8rem;
  color: #d1d5db;
  text-align: center;
  max-width: 90%;
  line-height: 1.4;
}

.bank-card .excess-overlay-hint strong {
  color: #f59e0b;
}
/* BankCardBadge.css */

.bank-card {
  position: relative;
  overflow: visible;
}

.bank-card-badges {
  position: absolute;
  top: -12px;
  left: -6px;
  right: -6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  width: calc(100% + 12px);
}

.bank-card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
}

/* Первый шильдик - скругление сверху */
.bank-card-badge:first-child {
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
}

/* Последний шильдик - скругление снизу */
.bank-card-badge:last-child {
  border-bottom-left-radius: 0.7rem;
  border-bottom-right-radius: 0.7rem;
}

/* Если только один шильдик */
.bank-card-badge:only-child {
  border-radius: 0.7rem;
}

/* 🟢 Промо бейдж - зеленый */
.bank-card-badge.badge-promo {
  background: #16a34a;
  color: #ffffff;
}

/* 🟣 Сверхлимит бейдж - фиолетовый */
.bank-card-badge.badge-excess {
  background: #7c4dff;
  color: #ffffff;
}

/* 🔴 Терм бейдж - красный */
.bank-card-badge.badge-term {
  background: #dc2626;
  color: #ffffff;
}

/* 🟢 Недоступный бейдж - зеленый (можно изменить на серый) */
.bank-card-badge.badge-unavailable {
  background: #6b7280;
  color: #ffffff;
}

/* Дополнительные стили для иконок и текста */
.badge-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.badge-text {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: none;
}

/* Анимация появления бейджей */
.bank-card-badge {
  animation: slideDown 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Задержка для последовательного появления */
.bank-card-badge:nth-child(1) {
  animation-delay: 0.05s;
}
.bank-card-badge:nth-child(2) {
  animation-delay: 0.1s;
}
.bank-card-badge:nth-child(3) {
  animation-delay: 0.15s;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .bank-card-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.6rem;
  }

  .badge-text {
    font-size: 0.55rem;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/DynamicInfoPopup/DynamicInfoPopup.css */

.dynamic-info-display {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  cursor: pointer;
}

.dynamic-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d1d5db;
  user-select: none;
  flex-shrink: 0;
}

.dynamic-info-icon:hover {
  background: #818cf8;
  color: white;
  border-color: #818cf8;
  transform: scale(1.1);
}

/* 🔥 Оверлей модального окна */
.dynamic-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.25s ease-out;
}

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

/* 🔥 Модальное окно */
.dynamic-modal {
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 🔥 Заголовок модального окна */
.dynamic-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
  flex-shrink: 0;
  gap: 12px;
}

.dynamic-modal-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dynamic-modal-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon {
  font-size: 1.2rem;
}

/* 🔥 Подзаголовок с банком и программой */
.dynamic-modal-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.modal-bank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #1f2937;
}

.modal-program {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #1f2937;
}

.modal-divider {
  color: #d1d5db;
  font-weight: 300;
}

/* 🔥 Кнопка закрытия */
.dynamic-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.dynamic-modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* 🔥 Диапазон значений */
.dynamic-modal-range {
  font-weight: 700;
  font-size: 1rem;
  color: #4f46e5;
  background: #eef2ff;
  padding: 8px 16px;
  border-radius: 12px;
  margin: 12px 0 16px 0;
  text-align: center;
  flex-shrink: 0;
}

/* 🔥 Тело модального окна */
.dynamic-modal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.dynamic-modal-body::-webkit-scrollbar {
  width: 4px;
}

.dynamic-modal-body::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.dynamic-modal-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.dynamic-modal-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* 🔥 Элемент условия */
.dynamic-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  transition: background 0.2s;
  border: 1px solid #f3f4f6;
}

.dynamic-modal-item:hover {
  background: #f3f4f6;
}

.modal-item-value {
  font-weight: 700;
  color: #1f2937;
  min-width: 60px;
  background: white;
  padding: 4px 12px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.modal-item-description {
  color: #4b5563;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* 🔥 Пустое состояние */
.dynamic-modal-empty {
  text-align: center;
  color: #9ca3af;
  padding: 24px 0;
  font-size: 0.95rem;
  font-style: italic;
}

/* 🔥 Адаптив */
@media (max-width: 768px) {
  .dynamic-modal {
    padding: 20px 24px;
    max-width: 95%;
  }

  .dynamic-modal-title {
    font-size: 1rem;
  }

  .dynamic-modal-range {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .dynamic-modal-subtitle {
    font-size: 0.7rem;
  }

  .modal-item-value {
    min-width: 50px;
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .modal-item-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .dynamic-modal {
    padding: 16px;
    max-width: 98%;
    max-height: 85vh;
  }

  .dynamic-modal-title {
    font-size: 0.9rem;
  }

  .dynamic-modal-close {
    font-size: 1.2rem;
    padding: 2px 6px;
  }

  .dynamic-modal-range {
    font-size: 0.8rem;
    padding: 4px 10px;
    margin: 8px 0 12px 0;
  }

  .dynamic-modal-subtitle {
    font-size: 0.65rem;
    gap: 4px;
  }

  .dynamic-modal-item {
    padding: 6px 10px;
    gap: 8px;
  }

  .modal-item-value {
    min-width: 45px;
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .modal-item-description {
    font-size: 0.75rem;
  }

  .dynamic-modal-empty {
    font-size: 0.85rem;
    padding: 16px 0;
  }
}
/* src/components/BankGroup/BankGroup.css */
.bank-group {
  margin-bottom: 2.5rem;
}

.bank-group-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.75rem;
  color: white;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bank-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.bank-group-count {
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  flex-shrink: 0;
}

.bank-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .bank-group-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .bank-group-title {
    font-size: 1rem;
  }
}
/* src/components/CopyButton/CopyButton.css */

/* Основные стили кнопки копирования */
.copy-selected-btn {
  padding: 0.4rem 1.5rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Состояние при наведении */
.copy-selected-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Состояние при нажатии */
.copy-selected-btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Состояние при отключении */
.copy-selected-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Состояние успешного копирования */
.copy-selected-btn.success {
  background: #22c55e;
  color: white;
}

.copy-selected-btn.success:hover:not(:disabled) {
  background: #16a34a;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
  .copy-selected-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .copy-selected-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}
.select-all-btn {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.select-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.select-all-btn:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .select-all-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .select-all-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}
/* src/components/DeselectAllButton/DeselectAllButton.css */
.deselect-all-btn {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deselect-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.deselect-all-btn:active {
  transform: scale(0.97);
}

.deselect-all-btn.danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.deselect-all-btn.danger:hover {
  background: rgba(255, 107, 107, 0.2);
}

@media (max-width: 768px) {
  .deselect-all-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .deselect-all-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}
/* src/components/PrintButton/PrintButton.css */
.print-selected-btn {
  padding: 0.4rem 1.5rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.print-selected-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.print-selected-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.print-selected-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .print-selected-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .print-selected-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}
/* src/components/SelectionCounter/SelectionCounter.css */
.selection-count {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .selection-count {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
}
/* src/components/FloatingSelectionBar/FloatingSelectionBar.css */

.floating-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.floating-bar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .floating-selection-bar {
    padding: 0.5rem 1rem;
  }

  .floating-bar-content {
    gap: 0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .floating-bar-content {
    gap: 0.75rem;
  }
}
/* FormSection.css */
.form-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-block {
  display: flex;
  flex-direction: column;
}

.form-block h2 {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #555;
}

.field select,
.field input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.field select:focus,
.field input[type="number"]:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.field input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.range-value {
  font-weight: 600;
  color: #667eea;
}

/* Блок с чекбоксами */
.form-block-checkboxes .form-fields {
  gap: 0.75rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.checkbox-field label:hover {
  color: #1f2937;
}

.field input[type="number"]::placeholder {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* Адаптив */
@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .form-section {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-block h2 {
    font-size: 1rem;
  }

  .checkbox-field {
    padding: 0.15rem 0;
  }

  .checkbox-field input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .checkbox-field label {
    font-size: 0.8125rem;
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.calculate-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calculate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.calculate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .form-actions {
    justify-content: center;
  }

  .calculate-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1.5rem;
  }
}
/* src/pages/ProjectsPage/ProjectsPage.css */
.projects-page {
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #f3f4f6 0%, #e8ecf1 100%);
  min-height: 100vh;
  padding: 30px;
}

.projects-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

/* Состояния загрузки и ошибки */
.loading-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: #ffffff;
  border-radius: 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.error-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
}

.error-state p {
  color: #dc3545;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.error-state button {
  padding: 0.5rem 1.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.error-state button:hover {
  background: #5a6fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 20px;
  color: #9ca3af;
  text-align: center;
  min-height: 400px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
  color: #6b7280;
}

.empty-state .empty-hint {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Адаптив для страницы */
@media (max-width: 1200px) {
  .projects-layout {
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .projects-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .projects-page {
    padding: 1rem;
  }
}
/* src/pages/ProjectsPage/components/ProjectsList/ProjectsList.css */
.projects-list-wrapper {
  position: sticky;
  top: 30px;
}

.projects-list-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.projects-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-icon {
  font-size: 1.3rem;
}

.projects-list-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.3px;
}

.projects-list-header .count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #667eea;
  background: rgba(102, 126, 234, 0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

.projects-list-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: transparent;
}

.project-item:hover {
  background: rgba(102, 126, 234, 0.06);
  transform: translateX(4px);
}

.project-item.active {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.12),
    rgba(102, 126, 234, 0.06)
  );
  box-shadow: inset 0 1px 3px rgba(102, 126, 234, 0.1);
}

.project-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 0 4px 4px 0;
}

.project-status-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.dot-sdan {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.status-dot.dot-stroitsya {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.status-dot.dot-proekt {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.project-item .project-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  flex: 1;
  transition: color 0.3s ease;
}

.project-item.active .project-name {
  color: #667eea;
  font-weight: 600;
}

.project-item.active .project-status-label {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

/* Адаптив для списка проектов */
@media (max-width: 992px) {
  .projects-list-wrapper {
    position: static;
  }

  .projects-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
  }

  .project-item {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .projects-list-items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .projects-list-items {
    grid-template-columns: 1fr;
  }
}
/* src/pages/ProjectsPage/components/ProjectDetails/ProjectDetails.css */
.project-details-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  min-height: 500px;
}

.details-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.details-section {
  padding: 1.25rem;
  border-radius: 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.details-section.half {
  padding: 1rem 1.25rem;
}

.section-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #333;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-value.price {
  font-size: 1rem;
}

/* Специальные секции */
.details-section.highlight {
  background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.details-section.highlight .section-label {
  color: #667eea;
}

.details-section.special {
  background: linear-gradient(135deg, #fef9e7 0%, #fdf3d0 100%);
  border: 1px solid rgba(212, 168, 71, 0.2);
}

.details-section.special .section-label {
  color: #b8860b;
}

.mortgage-modern-section {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.programs-modern-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Адаптив для деталей */
@media (max-width: 992px) {
  .details-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .details-content {
    padding: 1rem;
  }

  .details-section {
    padding: 1rem;
  }

  .details-section.half {
    padding: 0.75rem 1rem;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .details-section {
    padding: 0.75rem;
  }

  .details-section.half {
    padding: 0.5rem 0.75rem;
  }
}
/* src/pages/ProjectsPage/components/ProjectDetails/ProjectHeader.css */
.details-header {
  position: relative;
  overflow: hidden;
}

.details-header-bg {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.details-header-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.details-header-bg::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.details-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  gap: 1rem;
}

.details-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.details-title > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.project-icon-large {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.details-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.details-title .project-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.5rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  width: fit-content;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge.status-sdan::before {
  background: #22c55e;
}

.status-badge.status-stroitsya::before {
  background: #f59e0b;
}

.status-badge.status-proekt::before {
  background: #3b82f6;
}

.project-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.project-link-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.project-link-button .link-icon {
  width: 16px;
  height: 16px;
}

/* Адаптив для хедера */
@media (max-width: 992px) {
  .details-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-header-right {
    align-self: flex-end;
    margin-top: -2.5rem;
  }

  .details-title {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .details-header-bg {
    padding: 1.5rem;
  }

  .details-title h2 {
    font-size: 1.2rem;
  }

  .project-icon-large {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .details-header-bg {
    padding: 1.5rem;
  }

  .details-header-right {
    align-self: flex-end;
    margin-top: -2rem;
  }

  .project-icon-large {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .details-title h2 {
    font-size: 1rem;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 1.2rem;
  }

  .project-link-button {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }
}
/* src/pages/ProjectsPage/components/ProjectDetails/ProjectInfo.css */
.price-types-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-type-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 8px;
}

.price-type-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
  flex-shrink: 0;
}

.price-type-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
}

.price-base {
  color: #1f2937;
  font-weight: 500;
}

.price-without-pv {
  color: #dc3545;
  font-weight: 600;
}

.price-partial-pv {
  color: #fd7e14;
  font-weight: 600;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.info-list li::before {
  content: "▸";
  color: #667eea;
  font-weight: 700;
  flex-shrink: 0;
}

.info-list.promotions li {
  color: #667eea;
  font-weight: 500;
}

.info-list.promotions li::before {
  content: "🔥";
  color: #f59e0b;
}

.info-list.special li {
  color: #b8860b;
  font-weight: 600;
}

.info-list.special li::before {
  content: "⭐";
}

.banks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bank-tag {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  color: #4b5563;
  cursor: default;
}

.bank-tag-empty {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  border-radius: 20px;
  color: #9ca3af;
}

/* Адаптив для информации */
@media (max-width: 768px) {
  .price-type-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-type-values {
    flex-direction: column;
    gap: 4px;
  }
}
/* src/pages/ProjectsPage/components/ProjectDetails/ProjectPrograms.css */
.program-modern-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.program-modern-card.expanded {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-width: 2px;
}

.program-modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
}

.program-modern-header:hover {
  background: #f1f5f9 !important;
}

.program-modern-header:active {
  transform: scale(0.99);
}

.program-modern-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.program-modern-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
}

.program-modern-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.program-modern-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
}

.program-modern-rate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.expand-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: #6b7280;
  width: 28px;
  text-align: center;
  line-height: 1;
}

.program-modern-card.expanded .expand-icon {
  color: #667eea;
}

.program-modern-offers {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
}

.offer-table-header {
  display: grid;
  grid-template-columns: 220px 1fr 0.8fr 0.6fr 1.2fr;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-bank {
  grid-column: 1;
}
.header-rate {
  grid-column: 2;
}
.header-subsidy {
  grid-column: 3;
}
.header-pv {
  grid-column: 4;
}
.header-info {
  grid-column: 5;
}

.offer-modern-item {
  display: grid;
  grid-template-columns: 220px 1fr 0.8fr 0.6fr 1.2fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fafbfc;
}

.offer-modern-item:last-child {
  border-bottom: none;
}

.offer-modern-item:hover {
  background: #f3f4f6;
}

.offer-modern-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.offer-modern-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.offer-modern-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.offer-modern-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f2937;
  white-space: nowrap;
}

.offer-modern-desc {
  font-size: 0.7rem;
  color: #6b7280;
  white-space: nowrap;
}

.offer-modern-rate-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-modern-rate {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1rem;
}

.offer-modern-rate-short {
  font-weight: 700;
  color: #ea580c;
  font-size: 1.1rem;
}

.offer-modern-rate-two {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1rem;
}

.dynamic-rates-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dynamic-rate-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.dynamic-rate-value {
  font-weight: 700;
  color: #667eea;
  font-size: 0.85rem;
  min-width: 44px;
}

.dynamic-rate-condition {
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
}

.excess-rate-range-text {
  font-weight: 700;
  color: #667eea;
  font-size: 1rem;
}

.excess-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: #7c3aed;
  background: #ede9fe;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  border: 1px solid #c4b5fd;
  white-space: nowrap;
}

.offer-modern-subsidy {
  display: flex;
  align-items: center;
}

.offer-modern-subsidy .stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.offer-modern-pv {
  display: flex;
  align-items: center;
}

.offer-modern-pv .stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.offer-modern-info-text {
  display: flex;
  align-items: center;
  min-width: 0;
}

.info-text {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.3;
  word-break: break-word;
}

.info-text-empty {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Адаптив для программ */
@media (max-width: 992px) {
  .offer-table-header {
    display: none;
  }

  .offer-modern-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
  }

  .offer-modern-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .offer-modern-rate-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: space-between;
  }

  .offer-modern-rate-block::before {
    content: "Ставка:";
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
  }

  .dynamic-rates-list {
    width: 100%;
  }

  .dynamic-rate-item {
    justify-content: space-between;
  }

  .offer-modern-subsidy {
    display: flex;
    justify-content: space-between;
  }

  .offer-modern-subsidy::before {
    content: "Субсидия:";
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
  }

  .offer-modern-pv {
    display: flex;
    justify-content: space-between;
  }

  .offer-modern-pv::before {
    content: "Мин. ПВ:";
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
  }

  .offer-modern-info-text {
    display: flex;
    justify-content: space-between;
  }

  .offer-modern-info-text::before {
    content: "Информация:";
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
  }
}

@media (max-width: 480px) {
  .program-modern-header {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .program-modern-info {
    flex-wrap: wrap;
  }

  .program-modern-name {
    font-size: 0.8rem;
  }

  .offer-modern-rate {
    font-size: 0.95rem;
  }

  .dynamic-rate-value {
    font-size: 0.8rem;
    min-width: 38px;
  }

  .dynamic-rate-condition {
    font-size: 0.6rem;
  }
}
/* src/pages/ProjectsPage/components/ProgramCard/ProgramCard.css */
.program-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.program-card.expanded {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.program-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.program-card-header:hover {
  background: #f1f5f9 !important;
}

.program-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.program-card-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
}

.program-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.program-card-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
}

.expand-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: #6b7280;
  width: 28px;
  text-align: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.program-card.expanded .expand-icon {
  color: #667eea;
}

.program-card-content {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
  .program-card-header {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .program-card-info {
    flex-wrap: wrap;
  }

  .program-card-name {
    font-size: 0.8rem;
  }
}
/* src/pages/ProjectsPage/components/OfferRow/OfferRow.css */
.offer-modern-item {
  display: grid;
  grid-template-columns: 220px 1fr 0.8fr 0.6fr 1.2fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fafbfc;
}

.offer-modern-item:last-child {
  border-bottom: none;
}

.offer-modern-item:hover {
  background: #f3f4f6;
}

.offer-modern-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.offer-modern-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.offer-modern-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.offer-modern-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f2937;
  white-space: nowrap;
}

.offer-modern-desc {
  font-size: 0.7rem;
  color: #6b7280;
  white-space: nowrap;
}

.offer-modern-rate-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-modern-rate {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1rem;
}

.offer-modern-rate-short {
  font-weight: 700;
  color: #ea580c;
  font-size: 1.1rem;
}

.offer-modern-rate-two {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1rem;
}

.dynamic-rates-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dynamic-rate-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.dynamic-rate-value {
  font-weight: 700;
  color: #667eea;
  font-size: 0.85rem;
}
/* frontend/src/pages/Admin/AdminSidebar.css */

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--admin-gray-200);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--admin-gray-300);
  border-radius: 4px;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-gray-100);
  min-height: 72px;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--admin-primary),
    var(--admin-primary-light)
  );
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--admin-gray-900);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--admin-primary);
}

.sidebar-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.sidebar-toggle-btn .toggle-line {
  width: 22px;
  height: 2px;
  background: var(--admin-gray-600);
  border-radius: 2px;
  transition: var(--admin-transition);
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-gray-400);
  padding: 0.5rem 0.75rem 0.5rem;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--admin-gray-600);
  cursor: pointer;
  transition: var(--admin-transition);
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: var(--admin-gray-100);
  color: var(--admin-gray-900);
}

.nav-item.active {
  background: var(--admin-primary-bg);
  color: var(--admin-primary);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--admin-primary);
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label-text {
  flex: 1;
}

.nav-indicator {
  width: 4px;
  height: 20px;
  background: var(--admin-primary);
  border-radius: 2px;
  position: absolute;
  right: 8px;
}

.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--admin-gray-100);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--admin-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.status-text {
  font-size: 0.75rem;
  color: var(--admin-gray-500);
}

.sidebar-version {
  font-size: 0.65rem;
  color: var(--admin-gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    min-width: unset;
    height: auto;
    max-height: 64px;
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: none;
    border-bottom: 1px solid var(--admin-gray-200);
  }

  .admin-sidebar.open {
    max-height: 100vh;
    overflow-y: auto;
  }

  .admin-sidebar-header {
    min-height: 64px;
    padding: 0.5rem 1rem;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .admin-sidebar-nav {
    padding: 0.5rem 0.75rem 1rem;
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .admin-sidebar-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    max-height: 56px;
  }

  .admin-sidebar-header {
    min-height: 56px;
    padding: 0.25rem 0.75rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}
/* frontend/src/pages/Admin/AdminLayout.css - обновленная версия */
.admin-section {
  background: #ffffff;
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  border: 1px solid var(--admin-gray-200);
  margin-bottom: 1.5rem;
  transition: var(--admin-transition);
  box-shadow: var(--admin-shadow-sm);
}

.admin-section:hover {
  border-color: var(--admin-gray-300);
  box-shadow: var(--admin-shadow);
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-section-header h2,
.admin-section-header h3,
.admin-section-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--admin-gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-section-header .section-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--admin-gray-500);
  background: var(--admin-gray-100);
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
}

.admin-section-body {
  padding-top: 0.25rem;
}

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-toolbar .spacer {
  flex: 1;
}

.admin-toolbar .search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  padding: 0.3rem 0.75rem;
  transition: var(--admin-transition);
}

.admin-toolbar .search-box:focus-within {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-toolbar .search-box input {
  border: none;
  background: transparent;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  outline: none;
  min-width: 180px;
  color: var(--admin-gray-900);
}

.admin-toolbar .search-box .search-icon {
  color: var(--admin-gray-400);
  font-size: 0.9rem;
}

.admin-toolbar select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  background: #ffffff;
  color: var(--admin-gray-700);
  outline: none;
  transition: var(--admin-transition);
}

.admin-toolbar select:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-btn-primary {
  padding: 0.4rem 1rem;
  background: var(--admin-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-primary:hover {
  background: var(--admin-primary-dark);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.admin-btn-secondary {
  padding: 0.4rem 1rem;
  background: #ffffff;
  color: var(--admin-gray-700);
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-secondary:hover {
  background: var(--admin-gray-50);
  border-color: var(--admin-gray-300);
}

.admin-btn-success {
  padding: 0.4rem 1rem;
  background: var(--admin-success);
  color: #ffffff;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-success:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-btn-danger {
  padding: 0.4rem 1rem;
  background: var(--admin-danger);
  color: #ffffff;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-btn-warning {
  padding: 0.4rem 1rem;
  background: var(--admin-warning);
  color: #ffffff;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-btn-sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.admin-table-wrapper {
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius);
  overflow: hidden;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: var(--admin-gray-50);
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-gray-500);
  border-bottom: 1px solid var(--admin-gray-200);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--admin-gray-100);
  vertical-align: middle;
  color: var(--admin-gray-800);
}

.admin-table tbody tr {
  transition: var(--admin-transition);
}

.admin-table tbody tr:hover {
  background: var(--admin-gray-50);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table input,
.admin-table select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  font-size: 0.8rem;
  width: 100%;
  min-width: 60px;
  background: #ffffff;
  transition: var(--admin-transition);
  color: var(--admin-gray-800);
}

.admin-table input:focus,
.admin-table select:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-table input[type="color"] {
  padding: 0;
  width: 40px;
  height: 32px;
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
}

.admin-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.admin-actions button {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  border: none;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: var(--admin-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  background: var(--admin-gray-100);
  color: var(--admin-gray-600);
}

.admin-actions button:hover {
  background: var(--admin-gray-200);
}

.admin-actions .admin-btn-success {
  background: var(--admin-success-bg);
  color: var(--admin-success);
}

.admin-actions .admin-btn-success:hover {
  background: #d1fae5;
}

.admin-actions .admin-btn-danger {
  background: var(--admin-danger-bg);
  color: var(--admin-danger);
}

.admin-actions .admin-btn-danger:hover {
  background: #fee2e2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.status-badge.active {
  background: var(--admin-success-bg);
  color: #065f46;
  border-color: #a7f3d0;
}

.status-badge.inactive {
  background: var(--admin-danger-bg);
  color: #991b1b;
  border-color: #fecaca;
}

@media (max-width: 768px) {
  .admin-section {
    padding: 1rem;
    border-radius: var(--admin-radius-sm);
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar .search-box {
    width: 100%;
  }

  .admin-toolbar .search-box input {
    min-width: unset;
    width: 100%;
  }

  .admin-toolbar select {
    width: 100%;
  }

  .admin-table {
    font-size: 0.75rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.35rem 0.5rem;
  }

  .admin-actions button {
    padding: 0.15rem 0.3rem;
    min-width: 24px;
    min-height: 24px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .admin-section {
    padding: 0.75rem;
  }

  .admin-section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .admin-section-header h2 {
    font-size: 0.95rem;
  }

  .admin-table {
    font-size: 0.65rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.25rem 0.35rem;
  }

  .admin-table input,
  .admin-table select {
    font-size: 0.6rem;
    padding: 0.1rem 0.2rem;
    min-width: 40px;
  }
}
/* frontend/src/pages/Admin/sections/BanksSection.css */

/* ============================================================
   BANKS SECTION
   ============================================================ */
.banks-section .admin-section .admin-table .bank-name {
  font-weight: 500;
}

.banks-section .admin-section .admin-table .bank-slug {
  color: #888;
  font-size: 0.75rem;
}

.banks-section .admin-section .admin-table .bank-rate-highlight {
  font-weight: 600;
  color: #3b82f6;
}
/* frontend/src/pages/Admin/components/ApartmentTypesSection.css */

.apartment-types-section {
  margin-top: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 0.5rem;
  border: 1px solid #eaeaea;
}

.apartment-types-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.apartment-types-section .section-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.apartment-types-section .type-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.apartment-types-section .type-row:last-child {
  border-bottom: none;
}

.apartment-types-section .type-cell {
  flex: 1;
  display: flex;
  align-items: center;
}

.apartment-types-section .type-cell input,
.apartment-types-section .type-cell select {
  width: 100%;
  padding: 0.2rem 0.4rem;
  border: 1px solid #eaeaea;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  background: #ffffff;
}

.apartment-types-section .type-cell input:focus,
.apartment-types-section .type-cell select:focus {
  outline: none;
  border-color: #3b82f6;
}

.apartment-types-section .type-actions {
  display: flex;
  gap: 0.25rem;
}

.apartment-types-section .empty-state {
  text-align: center;
  color: #888;
  padding: 1.5rem;
  font-size: 0.85rem;
}
/* frontend/src/pages/Admin/sections/ComplexesSection.css */

.bank-selector {
  position: relative;
  min-width: 200px;
}

.bank-selector-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  background: white;
  min-height: 38px;
  transition: border-color 0.2s;
}

.bank-selector-trigger:hover {
  border-color: #9ca3af;
}

.bank-selector-trigger:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bank-selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.25rem;
}

.bank-selector-dropdown::-webkit-scrollbar {
  width: 6px;
}

.bank-selector-dropdown::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.bank-selector-dropdown::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.bank-selector-dropdown::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.bank-selector-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.15s;
}

.bank-selector-option:hover {
  background: #f3f4f6;
}

.bank-selector-option input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.bank-selector-option .bank-name {
  font-size: 0.85rem;
}

.bank-selector-option .bank-rate {
  font-size: 0.65rem;
  color: #6b7280;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .bank-selector {
    min-width: 150px;
  }

  .bank-selector-dropdown {
    max-height: 150px;
  }
}
/* frontend/src/pages/Admin/sections/ConfigSection.css */

.config-form {
  background: #1e1e2f;
  padding: 24px;
  border-radius: 12px;
  color: #e0e0e0;
}

.config-form h3 {
  color: #ffffff;
  margin: 24px 0 16px 0;
  font-size: 18px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.config-form h3:first-of-type {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #b0b0b0;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: #2a2a3e;
  border: 1px solid #3a3a52;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 12px;
}

.config-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.admin-btn-primary {
  padding: 12px 24px;
  background: #6c5ce7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-btn-primary:hover:not(:disabled) {
  background: #5a4bd1;
}

.admin-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: #b0b0b0;
  border: 1px solid #3a3a52;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-secondary:hover:not(:disabled) {
  background: #2a2a3e;
  border-color: #5a4bd1;
  color: white;
}

.admin-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  padding: 12px 16px;
  background: #3d1a1a;
  border: 1px solid #cc4444;
  border-radius: 8px;
  color: #ff6b6b;
  margin: 12px 0;
}

.form-success {
  padding: 12px 16px;
  background: #1a3d1a;
  border: 1px solid #44cc44;
  border-radius: 8px;
  color: #6bff6b;
  margin: 12px 0;
}

.admin-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #b0b0b0;
  font-size: 16px;
}

.admin-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #ff6b6b;
  gap: 16px;
}

.admin-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #b0b0b0;
  font-size: 16px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
/* frontend/src/pages/Admin/AdminPage.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --admin-primary: #4f46e5;
  --admin-primary-dark: #4338ca;
  --admin-primary-light: #818cf8;
  --admin-primary-bg: #eef2ff;
  --admin-success: #10b981;
  --admin-success-bg: #ecfdf5;
  --admin-warning: #f59e0b;
  --admin-warning-bg: #fffbeb;
  --admin-danger: #ef4444;
  --admin-danger-bg: #fef2f2;
  --admin-gray-50: #f9fafb;
  --admin-gray-100: #f3f4f6;
  --admin-gray-200: #e5e7eb;
  --admin-gray-300: #d1d5db;
  --admin-gray-400: #9ca3af;
  --admin-gray-500: #6b7280;
  --admin-gray-600: #4b5563;
  --admin-gray-700: #374151;
  --admin-gray-800: #1f2937;
  --admin-gray-900: #111827;
  --admin-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --admin-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --admin-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --admin-radius: 12px;
  --admin-radius-sm: 8px;
  --admin-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOGIN ===== */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--admin-gray-900);
  position: relative;
  overflow: hidden;
}

.admin-login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(79, 70, 229, 0.08) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.admin-login-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(79, 70, 229, 0.03) 0%,
    transparent 70%
  );
  animation: loginGlow 20s ease-in-out infinite alternate;
}

@keyframes loginGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10%, 10%);
  }
}

.admin-login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.admin-login-logo {
  display: inline-block;
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    var(--admin-primary),
    var(--admin-primary-light)
  );
  width: 64px;
  height: 64px;
  border-radius: 16px;
  line-height: 64px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.admin-login-header h1 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.admin-login-header p {
  color: var(--admin-gray-400);
  font-size: 0.875rem;
}

.admin-login-input-group {
  margin-bottom: 1.5rem;
}

.admin-login-input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--admin-transition);
  outline: none;
}

.admin-login-input-group input::placeholder {
  color: var(--admin-gray-500);
}

.admin-login-input-group input:focus {
  border-color: var(--admin-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.admin-login-input-group input.error {
  border-color: var(--admin-danger);
}

.admin-login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--admin-danger);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.admin-login-error .error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-danger-bg);
  color: var(--admin-danger);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.admin-login-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--admin-primary),
    var(--admin-primary-dark)
  );
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--admin-transition);
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.admin-login-btn:active {
  transform: translateY(0);
}

/* ===== LOADER ===== */
.admin-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--admin-gray-900);
  color: #ffffff;
  gap: 1rem;
}

.admin-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--admin-primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ADMIN PAGE ===== */
.admin-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--admin-gray-50);
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

/* ===== HEADER ===== */
.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--admin-gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
}

.admin-header-left {
  display: flex;
  align-items: center;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--admin-gray-500);
}

.breadcrumb-item {
  color: var(--admin-gray-500);
}

.breadcrumb-item.active {
  color: var(--admin-gray-900);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--admin-gray-300);
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-header-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--admin-gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
}

.admin-header-btn:hover {
  background: var(--admin-gray-100);
  color: var(--admin-gray-700);
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--admin-danger);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--admin-transition);
}

.admin-user:hover {
  background: var(--admin-gray-100);
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--admin-primary),
    var(--admin-primary-light)
  );
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-gray-700);
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--admin-gray-200);
  border-radius: 8px;
  color: var(--admin-gray-600);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
}

.admin-logout-btn:hover {
  background: var(--admin-danger-bg);
  border-color: var(--admin-danger);
  color: var(--admin-danger);
}

.admin-body {
  flex: 1;
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .admin-header {
    padding: 0.75rem 1.5rem;
  }
  .admin-body {
    padding: 1rem 1.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-header {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-header-right {
    flex-wrap: wrap;
  }

  .admin-user-name {
    display: none;
  }

  .admin-logout-btn span {
    display: none;
  }

  .admin-body {
    padding: 0.75rem 1rem 1rem;
  }

  .admin-login-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .admin-header {
    padding: 0.5rem 0.75rem;
  }

  .admin-body {
    padding: 0.5rem 0.75rem 1rem;
  }

  .admin-breadcrumb {
    font-size: 0.75rem;
  }
}
/* frontend/src/pages/Admin/sections/DashboardSection.css */

/* ============================================================
   CSS ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --admin-primary: #3b82f6;
  --admin-gray-50: #f9fafb;
  --admin-gray-100: #f3f4f6;
  --admin-gray-200: #e5e7eb;
  --admin-gray-300: #d1d5db;
  --admin-gray-400: #9ca3af;
  --admin-gray-500: #6b7280;
  --admin-gray-600: #4b5563;
  --admin-gray-700: #374151;
  --admin-gray-800: #1f2937;
  --admin-gray-900: #111827;
  --admin-radius: 0.75rem;
  --admin-radius-sm: 0.5rem;
  --admin-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --admin-transition: all 0.2s ease;
}

/* ============================================================
   DASHBOARD SECTION
   ============================================================ */
.dashboard-section {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--admin-gray-500);
}

.dashboard-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--admin-gray-200);
  border-top-color: var(--admin-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--admin-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--admin-gray-200);
  transition: var(--admin-transition);
  animation: fadeIn 0.4s ease backwards;
}

.stat-card:hover {
  border-color: var(--admin-primary);
  box-shadow: var(--admin-shadow-md);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-card-content {
  display: flex;
  flex-direction: column;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-gray-900);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--admin-gray-500);
  font-weight: 500;
}

.stat-card-sub {
  font-size: 0.7rem;
  color: var(--admin-gray-400);
  margin-top: 0.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dashboard-card {
  background: #ffffff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-gray-200);
  overflow: hidden;
  transition: var(--admin-transition);
}

.dashboard-card:hover {
  border-color: var(--admin-gray-300);
}

.dashboard-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--admin-gray-100);
}

.dashboard-card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--admin-gray-800);
  margin: 0;
}

.dashboard-quick-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--admin-gray-200);
  border-radius: var(--admin-radius-sm);
  background: transparent;
  color: var(--admin-gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--admin-transition);
  text-align: left;
}

.quick-action:hover {
  background: var(--admin-gray-50);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.quick-action-icon {
  font-size: 1.1rem;
}

.dashboard-tips {
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0.75rem;
  background: var(--admin-gray-50);
  border-radius: var(--admin-radius-sm);
}

.tip-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-item p {
  font-size: 0.85rem;
  color: var(--admin-gray-600);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card-value {
    font-size: 1.25rem;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .stat-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .stat-card-value {
    font-size: 1.1rem;
  }
}
/* frontend/src/pages/Admin/sections/ProgramsSection.css */

/* ============================================================
   ОБЩИЙ КОНТЕЙНЕР
   ============================================================ */
.programs-section .admin-section {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #eaeaea;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.programs-section .admin-section:hover {
  border-color: #d4d4d4;
}

/* ============================================================
   ТУЛБАР
   ============================================================ */
.programs-section .admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.programs-section .admin-toolbar .admin-btn-secondary {
  padding: 0.4rem 1rem;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #eaeaea;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.programs-section .admin-toolbar .admin-btn-secondary:hover {
  background: #f5f5f5;
}

/* ============================================================
   ТАБЛИЦА
   ============================================================ */
.programs-section .admin-table-wrapper {
  border: 1px solid #eaeaea;
  border-radius: 0.5rem;
  background: #ffffff;
  overflow: hidden;
}

.programs-section .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.programs-section .admin-table thead {
  background: #fafafa;
}

.programs-section .admin-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  border-bottom: 1px solid #eaeaea;
  white-space: nowrap;
}

.programs-section .admin-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #1a1a1a;
}

.programs-section .admin-table tbody tr {
  transition: background 0.1s ease;
}

.programs-section .admin-table tbody tr:hover {
  background: #fafafa;
}

.programs-section .admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   ЯЧЕЙКИ ТАБЛИЦЫ
   ============================================================ */
.programs-section .program-type {
  font-weight: 500;
  color: #1a1a1a;
}

.programs-section .program-label {
  font-weight: 500;
}

.programs-section .program-icon {
  font-size: 1.5rem;
  display: inline-block;
  text-align: center;
  min-width: 32px;
}

.programs-section .program-color-preview {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #eaeaea;
  vertical-align: middle;
}

.programs-section .program-description {
  font-size: 0.8rem;
  color: #555;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   СТАТУСЫ
   ============================================================ */
.programs-section .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.programs-section .status-badge.active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.programs-section .status-badge.inactive {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* ============================================================
   ИНПУТЫ ДЛЯ РЕДАКТИРОВАНИЯ
   ============================================================ */
.programs-section .admin-table input,
.programs-section .admin-table select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #eaeaea;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  width: 100%;
  min-width: 60px;
  background: #ffffff;
  transition: border-color 0.15s;
  color: #1a1a1a;
}

.programs-section .admin-table input:focus,
.programs-section .admin-table select:focus {
  outline: none;
  border-color: #3b82f6;
}

.programs-section .admin-table input[type="color"] {
  padding: 0;
  width: 40px;
  height: 32px;
  border: 1px solid #eaeaea;
  border-radius: 0.25rem;
  cursor: pointer;
}

.programs-section .admin-table input[type="color"]:focus {
  border-color: #3b82f6;
}

.programs-section .admin-table .icon-input {
  font-size: 1rem;
  text-align: center;
}

/* ============================================================
   КНОПКИ ДЕЙСТВИЙ
   ============================================================ */
.programs-section .admin-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.programs-section .admin-actions button {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
}

.programs-section .admin-btn-primary {
  background: #f5f5f5;
  color: #1a1a1a;
  border: 1px solid #eaeaea;
}

.programs-section .admin-btn-primary:hover {
  background: #e5e5e5;
}

.programs-section .admin-btn-success {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
}

.programs-section .admin-btn-success:hover {
  background: #d1fae5;
}

.programs-section .admin-btn-danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.programs-section .admin-btn-danger:hover {
  background: #fee2e2;
}

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================================ */
.programs-section .empty-state {
  text-align: center;
  color: #888;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
  .programs-section .admin-table {
    font-size: 0.75rem;
  }

  .programs-section .admin-table th,
  .programs-section .admin-table td {
    padding: 0.35rem 0.5rem;
  }

  .programs-section .program-description {
    max-width: 120px;
  }

  .programs-section .admin-actions button {
    padding: 0.15rem 0.3rem;
    min-width: 24px;
    min-height: 24px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .programs-section .admin-table {
    font-size: 0.65rem;
  }

  .programs-section .admin-table th,
  .programs-section .admin-table td {
    padding: 0.25rem 0.35rem;
  }

  .programs-section .program-description {
    max-width: 80px;
  }

  .programs-section .admin-table input,
  .programs-section .admin-table select {
    font-size: 0.6rem;
    padding: 0.1rem 0.2rem;
    min-width: 40px;
  }

  .programs-section .admin-table input[type="color"] {
    width: 30px;
    height: 24px;
  }

  .programs-section .program-icon {
    font-size: 1.1rem;
  }

  .programs-section .program-color-preview {
    width: 18px;
    height: 18px;
  }

  .programs-section .admin-actions button {
    padding: 0.1rem 0.25rem;
    min-width: 20px;
    min-height: 20px;
    font-size: 0.6rem;
  }
}

.programs-section .admin-table td {
  vertical-align: middle;
}

.programs-section .admin-table input[type="color"] {
  cursor: pointer;
}

.programs-section .admin-table input[type="number"] {
  text-align: center;
}

.programs-section .admin-table code {
  background: #f3f4f6;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  color: #374151;
}

.programs-section .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
}

.programs-section .status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.programs-section .status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.programs-section .admin-btn-sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

/* Адаптив */
@media (max-width: 768px) {
  .programs-section .admin-table {
    min-width: 700px;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/BankTabs.css */

.bank-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  border-bottom: 2px solid #f3f4f6;
}

.bank-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.bank-tab:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.bank-tab.active {
  background: #f8fafc;
  color: #1f2937;
  border-bottom: 3px solid #818cf8;
}

.bank-tab .bank-tab-icon {
  font-size: 1rem;
}

.bank-tab .bank-tab-name {
  font-weight: 600;
}

.bank-tab .bank-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  background: #e5e7eb;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
}

.bank-tab.active .bank-tab-count {
  background: #818cf8;
  color: white;
}

/* 🔥 Стили для неактивного банка */
.bank-tab.inactive {
  opacity: 0.5;
  cursor: not-allowed;
}

.bank-tab.inactive:hover {
  background: transparent;
  color: #6b7280;
}

/* 🔥 Разделитель между активными и неактивными банками */
.bank-tabs-divider {
  width: 2px;
  background: #e5e7eb;
  margin: 4px 0;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 🔥 Пустое состояние */
.bank-tabs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
  margin: 16px 0;
  width: 100%;
}

.bank-tabs-empty .empty-message {
  font-size: 18px;
  font-weight: 500;
  color: #6b7280;
}

.bank-tabs-empty .empty-hint {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 8px;
}

/* 🔥 Статус банка */
.bank-tab .bank-tab-status {
  font-size: 0.7rem;
  margin-left: 2px;
}

.bank-tab .bank-tab-status.active {
  color: #10b981;
}

.bank-tab .bank-tab-status.inactive {
  color: #ef4444;
}

@media (max-width: 768px) {
  .bank-tabs {
    gap: 0.25rem;
  }

  .bank-tab {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .bank-tab .bank-tab-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .bank-tab .bank-tab-count {
    display: none;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/ProgramGroup.css */

.program-group {
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.program-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.program-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.program-group-title .program-icon {
  font-size: 1.2rem;
}

.program-group-title .program-label {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}

.program-group-title .program-type-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.program-offers {
  display: flex;
  gap: 20px;
}

.program-offers-count {
  font-size: 0.75rem;
  color: #6b7280;
}

.program-offers-list {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .program-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .program-offers-count {
    font-size: 0.65rem;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/OfferCard.css */

.offer-card {
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
  transition: all 0.2s;
  padding: 0.75rem 1rem;
}

.offer-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.offer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offer-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-card-title .offer-program-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.offer-card-actions {
  display: flex;
  gap: 0.25rem;
}

.offer-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* 🔥 Верхняя часть с деталями */
.offer-details-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.25rem 1rem;
}

/* 🔥 Строка с ЖК внизу */
.offer-complexes-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e5e7eb;
  flex-wrap: wrap;
}

.offer-complexes-row .detail-label {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.85rem;
  min-width: 40px;
}

.offer-complexes-row .complexes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #1f2937;
}

/* 🔥 Описание */
.offer-description {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
  font-size: 0.85rem;
}

.offer-description .detail-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 70px;
}

.offer-description .detail-value {
  color: #1f2937;
}

.offer-detail-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.offer-detail-item .detail-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 70px;
}

.offer-detail-item .detail-value {
  color: #1f2937;
  font-weight: 500;
}

.offer-card-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.dynamic-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.dynamic-info .dynamic-label {
  color: #6b7280;
}

.dynamic-info .dynamic-value {
  color: #1f2937;
  font-weight: 500;
}

/* Статусы */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 500;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Субсидии */
.subsidy-cell {
  min-width: 80px;
}

.subsidy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.subsidy-fixed {
  background: #d1fae5;
  color: #059669;
}

.subsidy-dynamic {
  background: #ede9fe;
  color: #7c3aed;
}

.subsidy-none {
  background: #f3f4f6;
  color: #9ca3af;
}

.subsidy-dynamic-icon {
  font-size: 0.6rem;
}

/* Ставки */
.rate-cell {
  font-size: 0.85rem;
}

.rate-static-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.rate-main {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.rate-short {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

.rate-two {
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: 600;
}

.rate-dynamic-container {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rate-dynamic-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.rate-dynamic-value {
  font-weight: 700;
  color: #111827;
}

.rate-dynamic-condition {
  color: #6b7280;
  font-size: 0.65rem;
}

@media (max-width: 768px) {
  .offer-details-top {
    grid-template-columns: 1fr 1fr;
  }

  .offer-detail-item {
    font-size: 0.75rem;
  }

  .offer-detail-item .detail-label {
    min-width: 60px;
  }

  .offer-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .offer-complexes-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .offer-details-top {
    grid-template-columns: 1fr;
  }

  .offer-complexes-row .complexes-list {
    font-size: 0.7rem;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/DynamicRatesForm.css */

.dynamic-form {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.dynamic-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dynamic-form-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dynamic-form-header h4::before {
  content: "📊";
  font-size: 1.1rem;
}

.dynamic-form .admin-table-wrapper {
  background: white;
  border-radius: 0.5rem;
  overflow: auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dynamic-form .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 1000px;
}

.dynamic-form .admin-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  background: #f8fafc;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dynamic-form .admin-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

/* 🔥 Стили для drag-and-drop - ТОЛЬКО НА DRAG HANDLE */
.dynamic-form .admin-table tbody tr {
  transition:
    background-color 0.2s,
    transform 0.2s;
  user-select: none;
  cursor: default !important; /* 🔥 Убираем cursor: grab со всей строки */
}

.dynamic-form .admin-table tbody tr:hover {
  background-color: #fafafa;
}

.dynamic-form .admin-table tbody tr:active {
  cursor: default !important; /* 🔥 Убираем grabbing со всей строки */
}

.dynamic-form .admin-table tbody tr.dragging {
  opacity: 0.5;
  background-color: #e5e7eb;
}

.dynamic-form .admin-table tbody tr.drag-over {
  border-bottom: 2px solid #818cf8;
  background-color: #eef2ff;
}

.dynamic-form .admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* 🔥 Drag handle - ТОЛЬКО ЗДЕСЬ МОЖНО ПЕРЕТАСКИВАТЬ */
.drag-handle {
  display: inline-block;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
}

.drag-handle:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.drag-handle:active {
  cursor: grabbing;
  background: #e5e7eb;
  color: #1f2937;
}

/* 🔥 Убираем cursor: grabbing при активном состоянии строки */
.dynamic-form .admin-table tbody tr:active .drag-handle {
  cursor: grabbing;
}

/* 🔥 Увеличенные поля ввода */
.dynamic-form .admin-table input,
.dynamic-form .admin-table select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  background: white;
  width: 100%;
  transition: all 0.2s;
  color: #1f2937;
  min-height: 38px;
}

.dynamic-form .admin-table input:focus,
.dynamic-form .admin-table select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.dynamic-form .admin-table input::placeholder {
  color: #9ca3af;
  font-size: 0.75rem;
}

.dynamic-form .admin-table input[type="number"] {
  -moz-appearance: textfield;
}

.dynamic-form .admin-table input[type="number"]::-webkit-outer-spin-button,
.dynamic-form .admin-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 🔥 Стили для номера строки */
.dynamic-form .admin-table .row-number {
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.8rem;
  min-width: 30px;
}

/* 🔥 Кнопки */
.admin-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.admin-btn-danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.admin-btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-btn-danger.admin-btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  min-width: 28px;
  min-height: 28px;
}

.admin-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
}

.admin-btn-xs {
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  border-radius: 0.25rem;
}

/* 🔥 Кнопка дублирования */
.admin-btn-duplicate {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.admin-btn-duplicate:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.admin-btn-duplicate.admin-btn-xs {
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  min-width: 28px;
  min-height: 28px;
}

/* 🔥 Пустое состояние */
.dynamic-form .empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.dynamic-form .empty-state p {
  margin: 0;
}

.dynamic-form .empty-state .empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   🔥 РЕЖИМ ПРОСМОТРА
   ============================================================ */

.admin-table.view-mode tbody tr {
  cursor: default !important;
}

.admin-table.view-mode tbody tr:hover {
  background-color: #f8fafc;
}

.admin-table.view-mode td {
  padding: 0.6rem 0.8rem;
}

/* Значения в режиме просмотра */
.view-value {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-weight: 500;
  color: #1f2937;
  background: #f9fafb;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  border: 1px solid #f3f4f6;
  min-width: 40px;
}

.view-empty {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  color: #9ca3af;
  font-style: italic;
  font-size: 0.8rem;
  background: #f9fafb;
  border-radius: 0.375rem;
  border: 1px dashed #e5e7eb;
}

/* Кнопка редактирования */
.admin-btn-edit {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Кнопка сохранения */
.admin-btn-save {
  background: #10b981;
  color: white;
  border: 1px solid #34d399;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-save:hover {
  background: #059669;
  border-color: #10b981;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
  .dynamic-form {
    padding: 0.75rem;
  }

  .dynamic-form-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dynamic-form-header .admin-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .dynamic-form .admin-table {
    font-size: 0.75rem;
    min-width: 750px;
  }

  .dynamic-form .admin-table th {
    padding: 0.4rem 0.5rem;
    font-size: 0.6rem;
  }

  .dynamic-form .admin-table td {
    padding: 0.3rem 0.4rem;
  }

  .dynamic-form .admin-table input,
  .dynamic-form .admin-table select {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    min-height: 32px;
  }

  .drag-handle {
    font-size: 1rem;
    padding: 3px 6px;
  }

  /* Адаптив для режима просмотра */
  .view-value,
  .view-empty {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .dynamic-form {
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .dynamic-form .admin-table {
    font-size: 0.65rem;
    min-width: 650px;
  }

  .dynamic-form .admin-table th {
    padding: 0.3rem 0.35rem;
    font-size: 0.55rem;
  }

  .dynamic-form .admin-table td {
    padding: 0.2rem 0.25rem;
  }

  .dynamic-form .admin-table input,
  .dynamic-form .admin-table select {
    padding: 0.2rem 0.3rem;
    font-size: 0.65rem;
    min-height: 28px;
  }

  .admin-btn-secondary {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .admin-btn-danger {
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    min-width: 24px;
    min-height: 24px;
  }

  .admin-btn-duplicate {
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    min-width: 24px;
    min-height: 24px;
  }

  .drag-handle {
    font-size: 0.9rem;
    padding: 2px 4px;
  }

  /* Адаптив для режима просмотра */
  .view-value,
  .view-empty {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/DynamicSubsidiesForm.css */

.dynamic-form {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.dynamic-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dynamic-form-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dynamic-form-header h4::before {
  content: "💰";
  font-size: 1.1rem;
}

.dynamic-form .admin-table-wrapper {
  background: white;
  border-radius: 0.5rem;
  overflow: auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dynamic-form .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 1000px;
}

.dynamic-form .admin-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  background: #f8fafc;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dynamic-form .admin-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

/* 🔥 Стили для drag-and-drop - ТОЛЬКО НА DRAG HANDLE */
.dynamic-form .admin-table tbody tr {
  transition:
    background-color 0.2s,
    transform 0.2s;
  user-select: none;
  cursor: default !important; /* 🔥 Убираем cursor: grab со всей строки */
}

.dynamic-form .admin-table tbody tr:hover {
  background-color: #fafafa;
}

.dynamic-form .admin-table tbody tr:active {
  cursor: default !important; /* 🔥 Убираем grabbing со всей строки */
}

.dynamic-form .admin-table tbody tr.dragging {
  opacity: 0.5;
  background-color: #e5e7eb;
}

.dynamic-form .admin-table tbody tr.drag-over {
  border-bottom: 2px solid #818cf8;
  background-color: #eef2ff;
}

.dynamic-form .admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* 🔥 Drag handle - ТОЛЬКО ЗДЕСЬ МОЖНО ПЕРЕТАСКИВАТЬ */
.drag-handle {
  display: inline-block;
  font-size: 1.2rem;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
}

.drag-handle:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.drag-handle:active {
  cursor: grabbing;
  background: #e5e7eb;
  color: #1f2937;
}

/* 🔥 Убираем cursor: grabbing при активном состоянии строки */
.dynamic-form .admin-table tbody tr:active .drag-handle {
  cursor: grabbing;
}

/* 🔥 Увеличенные поля ввода */
.dynamic-form .admin-table input,
.dynamic-form .admin-table select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  background: white;
  width: 100%;
  transition: all 0.2s;
  color: #1f2937;
  min-height: 38px;
}

.dynamic-form .admin-table input:focus,
.dynamic-form .admin-table select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.dynamic-form .admin-table input::placeholder {
  color: #9ca3af;
  font-size: 0.75rem;
}

.dynamic-form .admin-table input[type="number"] {
  -moz-appearance: textfield;
}

.dynamic-form .admin-table input[type="number"]::-webkit-outer-spin-button,
.dynamic-form .admin-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 🔥 Стили для номера строки */
.dynamic-form .admin-table .row-number {
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.8rem;
  min-width: 30px;
}

/* 🔥 Кнопки */
.admin-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.admin-btn-danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.admin-btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-btn-danger.admin-btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  min-width: 28px;
  min-height: 28px;
}

.admin-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
}

.admin-btn-xs {
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  border-radius: 0.25rem;
}

/* 🔥 Кнопка дублирования */
.admin-btn-duplicate {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.admin-btn-duplicate:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.admin-btn-duplicate.admin-btn-xs {
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  min-width: 28px;
  min-height: 28px;
}

/* 🔥 Пустое состояние */
.dynamic-form .empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.dynamic-form .empty-state p {
  margin: 0;
}

.dynamic-form .empty-state .empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   🔥 РЕЖИМ ПРОСМОТРА
   ============================================================ */

.admin-table.view-mode tbody tr {
  cursor: default !important;
}

.admin-table.view-mode tbody tr:hover {
  background-color: #f8fafc;
}

.admin-table.view-mode td {
  padding: 0.6rem 0.8rem;
}

/* Значения в режиме просмотра */
.view-value {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-weight: 500;
  color: #1f2937;
  background: #f9fafb;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  border: 1px solid #f3f4f6;
  min-width: 40px;
}

.view-empty {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  color: #9ca3af;
  font-style: italic;
  font-size: 0.8rem;
  background: #f9fafb;
  border-radius: 0.375rem;
  border: 1px dashed #e5e7eb;
}

/* Кнопка редактирования */
.admin-btn-edit {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Кнопка сохранения */
.admin-btn-save {
  background: #10b981;
  color: white;
  border: 1px solid #34d399;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-save:hover {
  background: #059669;
  border-color: #10b981;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
  .dynamic-form {
    padding: 0.75rem;
  }

  .dynamic-form-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dynamic-form-header .admin-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .dynamic-form .admin-table {
    font-size: 0.75rem;
    min-width: 750px;
  }

  .dynamic-form .admin-table th {
    padding: 0.4rem 0.5rem;
    font-size: 0.6rem;
  }

  .dynamic-form .admin-table td {
    padding: 0.3rem 0.4rem;
  }

  .dynamic-form .admin-table input,
  .dynamic-form .admin-table select {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    min-height: 32px;
  }

  .drag-handle {
    font-size: 1rem;
    padding: 3px 6px;
  }

  /* Адаптив для режима просмотра */
  .view-value,
  .view-empty {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .dynamic-form {
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .dynamic-form .admin-table {
    font-size: 0.65rem;
    min-width: 650px;
  }

  .dynamic-form .admin-table th {
    padding: 0.3rem 0.35rem;
    font-size: 0.55rem;
  }

  .dynamic-form .admin-table td {
    padding: 0.2rem 0.25rem;
  }

  .dynamic-form .admin-table input,
  .dynamic-form .admin-table select {
    padding: 0.2rem 0.3rem;
    font-size: 0.65rem;
    min-height: 28px;
  }

  .admin-btn-secondary {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .admin-btn-danger {
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    min-width: 24px;
    min-height: 24px;
  }

  .admin-btn-duplicate {
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    min-width: 24px;
    min-height: 24px;
  }

  .drag-handle {
    font-size: 0.9rem;
    padding: 2px 4px;
  }

  /* Адаптив для режима просмотра */
  .view-value,
  .view-empty {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/OfferModal.css */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

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

/* 🔥 Увеличенное модальное окно */
.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.form-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-input.error,
.form-select.error {
  border-color: #ef4444;
}

.form-input.error:focus,
.form-select.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

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

/* 🔥 Поля с кнопкой действия (ставка и субсидия) */
.field-with-action {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.field-with-action-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-with-action-right {
  flex-shrink: 0;
  padding-bottom: 2px;
}

.action-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
  white-space: nowrap;
}

.action-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.action-btn.active {
  background: #818cf8;
  border-color: #818cf8;
  color: white;
}

.action-btn.active:hover {
  background: #6366f1;
  border-color: #6366f1;
}

/* 🔥 Заблокированное поле банка */
.bank-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: not-allowed;
  min-height: 40px;
}

.bank-locked-icon {
  font-size: 1.2rem;
}

.bank-locked-name {
  flex: 1;
  font-weight: 500;
  color: #1f2937;
}

.bank-locked-badge {
  font-size: 0.8rem;
  color: #6b7280;
  opacity: 0.6;
}

/* Чекбоксы */
.form-checkboxes {
  grid-column: 1 / -1;
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #818cf8;
}

/* Жилые комплексы */
.complexes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.complexes-grid .checkbox-label {
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.complexes-grid .checkbox-label:hover {
  background: #e5e7eb;
}

.modal-divider {
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.admin-btn-secondary {
  padding: 8px 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.admin-btn-success {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-btn-success:hover:not(:disabled) {
  background: #059669;
}

.admin-btn-secondary:disabled,
.admin-btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 🔥 Адаптивность */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .modal-form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }

  .field-with-action {
    flex-direction: column;
    align-items: stretch;
  }

  .field-with-action-right {
    padding-bottom: 0;
  }

  .action-btn {
    width: 100%;
    text-align: center;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }

  .complexes-grid .checkbox-label {
    padding: 2px 10px;
    font-size: 0.8rem;
  }

  .bank-locked {
    padding: 6px 10px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }
}

.iu-rates-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.iu-rate-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.iu-rate-row input {
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.85rem;
}

.iu-rate-row input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.iu-rate-row input::placeholder {
  color: #adb5bd;
  font-size: 0.75rem;
}

/* frontend/src/pages/Admin/sections/offers/components/OfferModal.css */

/* ============================================================
   МЕТОД РАСЧЕТА СУБСИДИИ
   ============================================================ */

.subsidy-method-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.radio-label:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.radio-label input[type="radio"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #3b82f6;
}

.radio-label input[type="radio"]:checked {
  accent-color: #3b82f6;
}

.radio-label:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
}

.radio-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .radio-label {
    padding: 10px 12px;
  }

  .radio-title {
    font-size: 0.85rem;
  }

  .radio-description {
    font-size: 0.75rem;
  }
}

/* ============================================================
   FULLSCREEN MODAL
   ============================================================ */

.modal-overlay.modal-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0;
  animation: fadeIn 0.25s ease-out;
}

.modal-content.modal-fullscreen-content {
  background: #f8fafc;
  border-radius: 0;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

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

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   ХЕДЕР МОДАЛЬНОГО ОКНА
   ============================================================ */

.modal-content.modal-fullscreen-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-content.modal-fullscreen-content .modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-content.modal-fullscreen-content .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-content.modal-fullscreen-content .modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* ============================================================
   ТЕЛО МОДАЛЬНОГО ОКНА
   ============================================================ */

.modal-content.modal-fullscreen-content .modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
}

.modal-content.modal-fullscreen-content .modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   ФУТЕР МОДАЛЬНОГО ОКНА
   ============================================================ */

.modal-content.modal-fullscreen-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.modal-content.modal-fullscreen-content .modal-footer button {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ============================================================
   ОСТАЛЬНЫЕ СТИЛИ ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ
   ============================================================ */

/* ... все остальные стили из вашего OfferModal.css ... */

/* ============================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ============================================================ */

@media (max-width: 768px) {
  .modal-content.modal-fullscreen-content .modal-header {
    padding: 12px 16px;
  }

  .modal-content.modal-fullscreen-content .modal-header h2 {
    font-size: 1rem;
  }

  .modal-content.modal-fullscreen-content .modal-body {
    padding: 16px;
  }

  .modal-content.modal-fullscreen-content .modal-form-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  .modal-content.modal-fullscreen-content .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
  }

  .modal-content.modal-fullscreen-content .modal-footer button {
    width: 100%;
  }

  .field-with-action {
    flex-direction: column;
    align-items: stretch;
  }

  .field-with-action-right {
    padding-bottom: 0;
  }

  .action-btn {
    width: 100%;
    text-align: center;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }

  .complexes-grid .checkbox-label {
    padding: 2px 10px;
    font-size: 0.8rem;
  }

  .bank-locked {
    padding: 6px 10px;
    min-height: 36px;
  }

  .iu-rate-row {
    flex-direction: column;
    align-items: stretch;
  }

  .iu-rate-row input {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .modal-content.modal-fullscreen-content .modal-body {
    padding: 8px;
  }

  .modal-content.modal-fullscreen-content .modal-form-grid {
    padding: 12px;
  }
}
/* frontend/src/pages/Admin/sections/offers/components/OffersToolbar.css */

.offers-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.offers-toolbar .spacer {
  flex: 1;
}

.offers-toolbar .search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s;
}

.offers-toolbar .search-box:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.offers-toolbar .search-box input {
  border: none;
  background: transparent;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  outline: none;
  min-width: 180px;
}

.offers-toolbar .search-box .search-icon {
  color: #9ca3af;
  font-size: 0.9rem;
}

.offers-toolbar .total-count {
  font-size: 0.85rem;
  color: #6b7280;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-btn-secondary:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .offers-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .offers-toolbar .search-box {
    width: 100%;
  }

  .offers-toolbar .search-box input {
    min-width: unset;
    width: 100%;
  }
}/* frontend/src/pages/Admin/sections/offers/components/OffersEmptyState.css */

.offers-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: #6b7280;
  text-align: center;
}

.offers-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.offers-empty-state .empty-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.1rem;
}

.offers-empty-state .empty-description {
  font-size: 0.85rem;
}/* frontend/src/pages/Admin/sections/offers/OffersSection.css */

/* ============================================================
   ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИИ
   ============================================================ */

.offers-section .offer-program {
  font-weight: 500;
}

.offers-section .offer-rate {
  font-weight: 600;
  color: #3b82f6;
}

.offers-section .offer-complexes {
  font-size: 0.75rem;
  color: #555;
}

.offers-section .complex-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #dfdfdf;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  color: #555;
  margin: 0.1rem;
}

.offers-section .complex-tag.selected {
  background: #3b82f6;
  color: #ffffff;
}

.offers-section .complex-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 200px;
}

/* ============================================================
   ТАБЛИЦЫ (общие)
   ============================================================ */

.offers-section .admin-table-wrapper {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
}

.offers-section .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 500px;
}

.offers-section .admin-table th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.offers-section .admin-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  color: #1f2937;
}

.offers-section .admin-table input,
.offers-section .admin-table select {
  padding: 0.15rem 0.3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  background: white;
  transition: all 0.2s;
}

.offers-section .admin-table input:focus,
.offers-section .admin-table select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.offers-section .admin-actions {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   КНОПКИ (общие для всей секции)
   ============================================================ */

.offers-section .admin-btn-xs {
  padding: 0.1rem 0.3rem;
  font-size: 0.65rem;
  border-radius: 0.2rem;
}

.offers-section .admin-btn-sm {
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 0.25rem;
}

.offers-section .admin-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.offers-section .admin-btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.offers-section .admin-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.offers-section .admin-btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.offers-section .admin-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.offers-section .admin-btn-primary:hover,
.offers-section .admin-btn-success:hover,
.offers-section .admin-btn-danger:hover,
.offers-section .admin-btn-warning:hover,
.offers-section .admin-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.offers-section .admin-btn-primary:disabled,
.offers-section .admin-btn-success:disabled,
.offers-section .admin-btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   ЗАГРУЗКА
   ============================================================ */

.offers-section .admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1rem;
}

/* frontend/src/pages/Admin/sections/offers/OffersSection.css */

.no-active-banks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
  margin: 20px 0;
}

.no-active-banks-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-active-banks h3 {
  font-size: 20px;
  color: #374151;
  margin-bottom: 8px;
}

.no-active-banks p {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

.no-active-banks strong {
  color: #1e3a5f;
}
/* frontend/src/pages/LandingPage.css */

/* ============================================================
   🔥 БАЗОВЫЕ СТИЛИ — СВЕТЛАЯ ТЕМА
   ============================================================ */
.landing-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #1e293b;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   🔥 НАВИГАЦИЯ — НА ВСЮ ШИРИНУ
   ============================================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.landing-nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.logo-icon {
  font-size: 28px;
}

.logo-highlight {
  color: #6c5ce7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1e293b;
}

.nav-cta {
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  padding: 8px 20px;
  border-radius: 8px;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: white !important;
}

/* ============================================================
   🔥 HERO СЕКЦИЯ
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: #6c5ce7;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #6c5ce7;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up-delay {
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #0f172a;
}

.hero-gradient {
  background: linear-gradient(135deg, #6c5ce7, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: #64748b;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e2e8f0;
}

/* ============================================================
   🔥 ПРЕВЬЮ КАЛЬКУЛЯТОРА
   ============================================================ */
.calculator-preview {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dots span:first-child {
  background: #ef4444;
}
.preview-dots span:nth-child(2) {
  background: #f59e0b;
}
.preview-dots span:last-child {
  background: #22c55e;
}

.preview-title {
  font-size: 14px;
  color: #94a3b8;
  margin-left: 4px;
}

.preview-body {
  padding-top: 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.preview-label {
  color: #94a3b8;
  font-size: 14px;
}

.preview-value {
  color: #1e293b;
  font-weight: 500;
}

.preview-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 12px 0;
}

.preview-result {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
}

.preview-result .preview-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.preview-result-value {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   🔥 FEATURES
   ============================================================ */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 18px;
  color: #94a3b8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================================
   🔥 CTA
   ============================================================ */
.cta {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: #f8fafc;
}

.cta-content {
  text-align: center;
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  border-radius: 24px;
  padding: 60px 40px;
  color: white;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-description {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-content .btn-primary {
  background: white;
  color: #6c5ce7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   🔥 FOOTER
   ============================================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 24px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 20px;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  color: #94a3b8;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f172a;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #1e293b;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* ============================================================
   🔥 АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 40px;
  }

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

  .calculator-preview {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-content {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 28px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}
body {
  margin: 0;
}

* {
  box-sizing: border-box;
}
