/* ========== ОБЩИЕ СТИЛИ ВНЕШНИХ СТРАНИЦ ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0c0f;
  font-family: 'Inter', sans-serif;
  color: #e5e7eb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-gradient {
  background: radial-gradient(circle at 20% 15%, #1a2432 0%, #0a0c0f 80%);
}

h1, h2, h3, .gradient-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== КНОПКИ ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 60px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid #2d3748;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.btn-primary {
  background: #10b981;
  border: 1px solid #10b981;
  color: #0a0c0f;
  box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6b7280;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ========== ШАПКА ВНЕШНИХ СТРАНИЦ ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-icon {
  background: #10b981;
  color: #0a0c0f;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}

.logo-text {
  color: white;
}
.logo-text span {
  color: #10b981;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #10b981;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid #2d3748;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6b7280;
}

/* ========== ФУТЕР ВНЕШНИХ СТРАНИЦ ========== */
.footer {
  border-top: 1px solid #1f2937;
  padding: 60px 0 30px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .logo-icon {
  background: #10b981;
  color: #0a0c0f;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
}

.footer-logo .logo-text span {
  color: #10b981;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2d3748;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-socials a:hover {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.footer-column h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #10b981;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: #10b981;
  font-size: 0.95rem;
  margin-top: 2px;
  width: 16px;
}

.footer-contact-item a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #10b981;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #6b7280;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #d1d5db;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #111827;
  border: 1px solid #2d3748;
  border-radius: 32px;
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 40px 60px -20px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #374151;
  color: #9ca3af;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: #6b7280;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal-header p {
  color: #9ca3af;
  font-size: 0.95rem;
}

.tab-switcher {
  display: flex;
  background: #0f172a;
  border-radius: 40px;
  padding: 5px;
  margin-bottom: 28px;
  gap: 5px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 40px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  border: none;
  color: #9ca3af;
}

.tab-btn.active {
  background: #10b981;
  color: #0a0c0f;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.form-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.form-panel.active {
  display: flex;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #d1d5db;
  margin-left: 4px;
}

.input-group input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 50px;
  padding: 14px 18px;
  font-size: 1rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.input-group input:focus {
  border-color: #10b981;
}

.input-group input::placeholder {
  color: #6b7280;
}

.forgot-link {
  text-align: right;
  font-size: 0.85rem;
}

.forgot-link a {
  color: #10b981;
  text-decoration: none;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 18px;
  width: 18px;
  height: 18px;
  background: #0f172a;
  border: 1.5px solid #4b5563;
  border-radius: 5px;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.consent-checkbox input[type="checkbox"]:checked {
  background: #10b981;
  border-color: #10b981;
}

.consent-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #0a0c0f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
}

.consent-checkbox a:hover {
  color: #34d399;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-about {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .modal {
    margin: 0 16px;
    padding: 32px 20px;
  }
}