footer {
  padding: 0;
  background: var(--surface);
  border-top: 1px solid rgba(2, 6, 23, .08);
  color: var(--muted)
}

.footer-inner {
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start
}

.footer-left {
  display: grid;
  gap: 8px
}

.footer-item b {
  color: #0b1324
}

.footer-link {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px
}

.footer-logo img {
  display: block;
  opacity: .9;
  max-width: 140px
}

.footer-bottom {
  border-top: 1px solid rgba(2, 6, 23, .08);
  padding: 14px 16px;
  text-align: center;
  color: var(--muted)
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto
  }
}

footer.site-footer {
  padding: 0;
  background: var(--surface, #fff);
  border-top: 1px solid rgba(2, 6, 23, .08);
  color: var(--muted, #64748b);
  width: 100%;
}

.site-footer .footer-inner {
  max-width: calc(var(--container, 1200px) + 32px);
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  /* mobile-first */
  gap: 16px;
  align-items: start;
}

.site-footer .footer-left {
  display: grid;
  gap: 8px;
}

.site-footer .footer-item b {
  color: #0b1324;
}

.site-footer .footer-link {
  color: var(--brand-600, #178d6a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-logo img {
  display: block;
  max-width: 140px;
  height: auto;
  opacity: .9;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(2, 6, 23, .08);
  padding: 14px 16px;
  text-align: center;
  color: var(--muted, #64748b);
}

@media (min-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr auto;
    /* текст слева, лого справа */
  }
}

/* Стили для навигации */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Стили для кнопки бонуса */
.bonus-btn {
  background-color: #f8fafc;
  color: #4a90e2;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-left: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline;
}

.bonus-btn:hover {
  background-color: #edf2f7;
  border-color: #a0aec0;
  color: #357ab8;
}

/* Стили для формы выхода */
.logout-form {
  display: inline;
}

.logout-btn {
  all: unset;
  cursor: pointer;
  color: #566674;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.logout-btn:hover {
  color: #1d2731;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .bonus-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    order: 1;
    justify-content: center;
    margin-top: 0.5rem;
  }

  header {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .logo {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.75rem;
  }

  .bonus-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
/* Стили для модального окна бонуса */
.modal-bonus-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  backdrop-filter: blur(4px);
}

.modal-bonus-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-bonus-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Декоративные элементы */
.modal-bonus-content::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-modal {
  position: relative;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0f2f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: #566674;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: #e0e4e8;
  color: #1d2731;
  transform: rotate(90deg);
}

.bonus-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.bonus-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.bonus-header h2 {
  color: #2e3a45;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.bonus-header p {
  color: #566674;
  font-size: 1rem;
  line-height: 1.5;
}

/* Форма */
.bonus-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2e3a45;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e0e4e8;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
  color: #a0aec0;
}

/* Кнопка активации */
.bonus-actions {
  text-align: center;
}

.bonus-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a90e2 0%, #357ab8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
  position: relative;
  overflow: hidden;
}

.bonus-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.bonus-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.bonus-submit:hover::before {
  left: 100%;
}

.bonus-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.btn-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Область результата */
.bonus-result {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
  animation: fadeIn 0.5s ease;
}

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

.bonus-result.success {
  background-color: #e6f4ea;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  display: block;
}

.bonus-result.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  display: block;
}

/* Конфетти эффект */
.confetti {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .modal-bonus-content {
    padding: 1.75rem;
    width: 95%;
  }
  
  .bonus-icon-large {
    font-size: 3rem;
  }
  
  .bonus-header h2 {
    font-size: 1.5rem;
  }
  
  .bonus-submit {
    padding: 0.875rem 1.5rem;
  }
}
