/* Campus Connect Direct — статическая версия для виртуального хостинга */

:root {
  --background: hsl(220, 25%, 10%);
  --foreground: hsl(45, 20%, 95%);
  --card: hsl(220, 20%, 14%);
  --card-foreground: hsl(45, 20%, 95%);
  --muted: hsl(220, 15%, 18%);
  --muted-foreground: hsl(220, 10%, 60%);
  --border: hsl(220, 15%, 22%);
  --gold: hsl(45, 75%, 55%);
  --gold-light: hsl(45, 85%, 70%);
  --gold-dark: hsl(45, 70%, 40%);
  --primary-foreground: hsl(220, 25%, 10%);
  --radius: 0.5rem;
  --card-shadow: 0 4px 24px -4px hsla(0, 0%, 0%, 0.4);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Утилиты */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted-foreground); }
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gold-gradient {
  background: linear-gradient(135deg, hsl(45, 85%, 65%) 0%, hsl(45, 75%, 55%) 50%, hsl(45, 65%, 45%) 100%);
}
.bg-card { background: var(--card); }
.bg-muted { background: hsl(220, 20%, 14%, 0.5); }
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-gold {
  background: linear-gradient(135deg, hsl(45, 85%, 65%) 0%, hsl(45, 75%, 55%) 50%, hsl(45, 65%, 45%) 100%);
  color: var(--primary-foreground);
}
.btn-gold:hover { box-shadow: 0 8px 30px -4px hsla(45, 75%, 55%, 0.3); }
.btn-outline {
  background: transparent;
  border: 1px solid hsla(45, 75%, 55%, 0.3);
  color: var(--gold);
}
.btn-outline:hover { background: hsla(45, 75%, 55%, 0.1); border-color: hsla(45, 75%, 55%, 0.5); }
.btn-dark {
  background: var(--background);
  color: var(--foreground);
}
.btn-dark:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-full { width: 100%; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s;
}
.header.scrolled {
  background: hsla(220, 25%, 10%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .header-inner { height: 5rem; } }

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsla(45, 75%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.logo-text { font-weight: 600; font-size: 1.125rem; display: none; }
@media (min-width: 640px) { .logo-text { display: block; } }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--gold); }

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: block; }
.nav-mobile a, .nav-mobile button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  color: var(--foreground);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--gold); }

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 5rem; left: 2.5rem;
  width: 16rem; height: 16rem;
  background: hsla(45, 75%, 55%, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 5rem; right: 2.5rem;
  width: 24rem; height: 24rem;
  background: hsla(45, 75%, 55%, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-content { position: relative; z-index: 1; max-width: 56rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(45, 75%, 55%, 0.1);
  border: 1px solid hsla(45, 75%, 55%, 0.2);
  color: var(--gold);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
}
.hero-list { list-style: none; margin-bottom: 2.5rem; }
.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.hero-list svg { color: var(--gold); flex-shrink: 0; margin-top: 0.125rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Карточки */
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.5rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}
.card:hover { border-color: hsla(45, 75%, 55%, 0.3); box-shadow: 0 8px 30px -4px hsla(45, 75%, 55%, 0.15); }
.card-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: hsla(45, 75%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.card p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Benefits */
.benefit-number {
  font-size: 4.5rem;
  font-weight: 700;
  color: hsla(45, 75%, 55%, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: -2rem;
}

/* CTA banner */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, hsl(45, 85%, 65%) 0%, hsl(45, 75%, 55%) 50%, hsl(45, 65%, 45%) 100%);
  position: relative;
  overflow: hidden;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; justify-content: space-between; }
}
.cta-text { display: flex; align-items: center; gap: 1.5rem; }
.cta-icon {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  background: hsla(0, 0%, 0%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-foreground);
}
.cta-text h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; color: var(--primary-foreground); margin-bottom: 0.5rem; }
.cta-text p { color: hsla(220, 25%, 10%, 0.8); font-size: 1.125rem; }

/* How we work */
.stage-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.stage-num {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(45, 85%, 65%) 0%, hsl(45, 75%, 55%) 100%);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.stage-grid {
  display: grid;
  gap: 1.5rem;
  padding-left: 2.75rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .stage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stage-grid { grid-template-columns: repeat(3, 1fr); } }

/* Case studies */
.case-card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}
.case-card summary {
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary:hover { background: hsla(220, 15%, 18%, 0.3); }
.case-header { display: flex; align-items: center; gap: 1rem; flex: 1; }
.case-body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.case-year {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsla(45, 75%, 55%, 0.2);
  color: var(--gold);
  border-radius: 9999px;
}
.case-results {
  background: hsla(220, 15%, 18%, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  margin: 1rem 0;
}
.case-results ul { list-style: none; }
.case-results li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.case-results li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.case-conclusion {
  background: hsla(45, 75%, 55%, 0.05);
  border: 1px solid hsla(45, 75%, 55%, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}
.case-conclusion h4 { color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.case-conclusion p { font-size: 0.875rem; color: var(--muted-foreground); }
.chevron { transition: transform 0.2s; color: var(--muted-foreground); flex-shrink: 0; }
details[open] .chevron { transform: rotate(180deg); }

/* FAQ */
.faq-item {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item[open] { border-color: hsla(45, 75%, 55%, 0.3); box-shadow: 0 4px 20px -4px hsla(45, 75%, 55%, 0.25); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted-foreground); line-height: 1.7; }

/* Forms */
.form-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  max-width: 42rem;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px hsla(45, 75%, 55%, 0.2);
}
.form-textarea { resize: vertical; min-height: 100px; }

.contact-toggle { display: flex; gap: 0.5rem; }
.contact-toggle button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.contact-toggle button.active {
  border-color: var(--gold);
  background: hsla(45, 75%, 55%, 0.1);
  color: var(--gold);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.checkbox-row input { margin-top: 0.25rem; accent-color: var(--gold); }
.checkbox-row label { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; cursor: pointer; }
.checkbox-row a { color: var(--gold); text-decoration: underline; }

.form-error {
  background: hsla(0, 70%, 50%, 0.1);
  border: 1px solid hsla(0, 70%, 50%, 0.3);
  color: hsl(0, 70%, 70%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}
.form-error.visible { display: block; }

/* Honeypot — скрытое поле от спам-ботов */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Статус формы (редирект без JS) */
.form-status {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-status.is-hidden { display: none; }
.form-status--success {
  background: hsla(142, 76%, 36%, 0.12);
  border: 1px solid hsla(142, 76%, 36%, 0.35);
  color: hsl(142, 60%, 65%);
}
.form-status--error {
  background: hsla(0, 70%, 50%, 0.1);
  border: 1px solid hsla(0, 70%, 50%, 0.3);
  color: hsl(0, 70%, 70%);
}

/* Анимация появления секций при скролле */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.modal h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-copy small { font-size: 0.75rem; display: block; margin-top: 0.25rem; }

/* Spasibo page */
.page-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-center main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
}
.success-icon {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  background: hsl(142, 76%, 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: hsl(142, 76%, 36%);
}
.success-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  display: flex;
  gap: 1rem;
}
.success-box-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: hsla(45, 75%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* Privacy page */
.page-content { padding: 6rem 1rem 4rem; }
.page-content h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 2rem; }
.page-content section { margin-bottom: 2rem; }
.page-content h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--foreground); }
.page-content p, .page-content li { color: var(--muted-foreground); margin-bottom: 0.75rem; line-height: 1.7; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content .meta { font-size: 0.875rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: hsl(142, 76%, 36%); }
.toast-error { background: hsl(0, 70%, 50%); }
