:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --dark: #1e1e1e;
  --light: #f8f9fa;
  --success: #4cc9f0;
  --danger: #f72585;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  line-height: 1.6;
}

header {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent), var(--success));
  background-clip: text; 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 6rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input, textarea, select {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-panel {
  display: none;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.login-form {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* Analytics Page Styles */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.chart-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  height: 400px;
}

.chart-container h3 {
  margin-bottom: 1rem;
  text-align: center;
}
/* Добавим стили для кнопки аналитики */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header > div {
  display: flex;
  gap: 1rem;
}

footer {
  background: rgba(15, 15, 15, 0.95);
  padding: 3rem 1rem;
  text-align: center;
}
#analyticsLink {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#analyticsLink:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  #analyticsLink {
    justify-content: center;
    padding: 1rem;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(30, 30, 30, 0.95);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: var(--transition);
    z-index: 1000;
  }
  
  nav.active {
    right: 0;
  }
  
  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .burger div {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
  }
  
  .burger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
