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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

/* Header */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  max-width: 100vw;
  padding: 0 40px;
  min-height: 70px;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
  letter-spacing: 1px;
  margin-right: 40px;
  transition: color 0.2s;
}
.logo:hover {
  color: #764ba2;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #667eea;
  border-bottom: 2px solid #667eea;
}

.nav-home {
  font-weight: 600 !important;
  color: #667eea !important;
  border-bottom: 2px solid #667eea !important;
}

.nav-home:hover {
  color: #764ba2 !important;
  border-bottom: 2px solid #764ba2 !important;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 40px;
}

.auth-buttons .btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.auth-buttons .btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.auth-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-buttons .btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.auth-buttons .btn-secondary:hover {
  background: #667eea;
  color: white;
}

/* Общие стили кнопок (для других элементов) */
.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* Main Content */
main {
  margin-top: 80px;
  padding: 2rem 0;
}

/* Features */
.features {
  background: white;
  padding: 4rem 0;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.feature-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #667eea;
}

/* Pricing */
.pricing {
  background: white;
  padding: 4rem 0;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.pricing-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
}

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

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin: 1rem 0;
}

/* Footer */
footer {
  background: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Game Widget Styles */
.game-widget {
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.10);
  max-width: 520px;
  margin: 3rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 0.1s both;
}

.game-widget h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.game-widget p {
  color: #666;
  margin-bottom: 1.5rem;
}

.game-widget .qr-preview {
  margin: 1.5rem 0 1rem 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-widget .style-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.game-widget .btn-game {
  font-size: 1.3rem;
  padding: 1.1rem 2.2rem;
  border-radius: 30px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #21A038, #764ba2);
  color: #fff;
  border: none;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(102,126,234,0.10);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.game-widget .btn-game:active {
  transform: scale(0.97);
}

.game-widget .btn-nav {
  font-size: 2rem;
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  transition: color 0.2s;
}

.game-widget .btn-nav:hover {
  color: #21A038;
}

.game-widget .style-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
}

.game-widget .style-description {
  color: #888;
  font-size: 0.95rem;
}

.game-widget .download-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.game-widget .download-options button {
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 20px;
}

/* Form Styles */
.form-container {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 3rem 2rem 3rem 2rem;
}

.form-container h1, .form-container h2 {
  margin-bottom: 1.5rem;
}

.form-container p, .form-container ol, .form-container ul {
  margin-bottom: 1.5rem;
}

.form-container ol, .form-container ul {
  padding-left: 1.5rem;
}

.form-container li {
  margin-bottom: 0.7rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Review Form Styles */
.review-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.review-form h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

.review-form p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.restaurant-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.restaurant-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.star {
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  color: #ddd;
}

.star.active {
  color: #FFD700;
}

.star:hover {
  color: #FFD700;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  display: none;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  display: none;
}

.anonymous-note {
  background: #e8f4fd;
  color: #0066cc;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .game-widget { 
    padding: 1.2rem 0.5rem; 
  }
}

@media (max-width: 900px) {
  header nav {
    padding: 0 10px;
  }
  .logo {
    margin-right: 10px;
  }
  .auth-buttons {
    margin-left: 10px;
  }
  .nav-links {
    gap: 1.2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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