@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

:root {
  --bg-color: #323541;
  --primary-color: #2a2d3a;
  --surface: #2a2d3a;
  --second-color: #FFD600;
  --text-color: #e5e7eb;
  --accent: #FFD600;
  --brand: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient-primary: linear-gradient(135deg, #FFD600, #FFA500);
  --gradient-secondary: linear-gradient(135deg, #2a2d3a, #323541);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-width: 320px;
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-color);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.section-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(42, 45, 58, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 214, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand a:hover {
  color: #ffed4e;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  background: var(--gradient-primary);
  color: #000 !important;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 1rem 6rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-color) 100%);
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Problem Section */
.problem-section {
  padding: 6rem 0;
  background: var(--bg-color);
  scroll-margin-top: 80px;
}

.problem-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

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

.problem-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.problem-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(239, 68, 68, 0.4);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.problem-item h3 {
  color: var(--error);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.problem-item p {
  color: #94a3b8;
  line-height: 1.6;
}

/* Solution Section */
.solution-section {
  padding: 6rem 0;
  background: var(--primary-color);
  scroll-margin-top: 80px;
}

.solution-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

.solution-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 214, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.solution-card.highlight {
  border: 1px solid var(--accent);
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 214, 0, 0.1);
}

.solution-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.solution-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.4rem;
}

.solution-card p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.solution-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.solution-card li {
  padding: 0.5rem 0;
  color: #cbd5e1;
  position: relative;
  padding-left: 1.5rem;
}

.solution-card li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
  background: var(--bg-color);
  scroll-margin-top: 80px;
}

.benefits-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

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

.benefit-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.benefit-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.4);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.benefit-item h3 {
  color: var(--success);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.benefit-item p {
  color: #94a3b8;
  line-height: 1.6;
}

/* CTA Sections */
.cta-section, .final-cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--surface));
  position: relative;
}

.cta-section::before, .final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.cta-content, .final-cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2, .final-cta h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.cta-section p, .final-cta p {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.cta-actions, .final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cta-guarantee, .final-cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-guarantee p, .final-cta-features .feature {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 140px;
}

.btn.primary {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-width: 180px;
}

.btn.small {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  min-width: 100px;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  scroll-margin-top: 80px;
  background: var(--primary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-lead {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.section-lead a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.section-lead a:hover {
  color: #ffed4e;
}

.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel {
  position: relative;
  background: var(--surface);
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots button[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}

/* Resources Section */
.resources-section {
  padding: 6rem 0;
  background: var(--bg-color);
  scroll-margin-top: 80px;
}

.resources-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

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

.resource-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 214, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.resource-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.resource-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.4rem;
}

.resource-card p {
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--primary-color);
  border-top: 1px solid rgba(255, 214, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-social .vk-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0077FF;
  font-weight: 600;
}

.footer-info {
  text-align: right;
  color: #94a3b8;
}

.footer-info a {
  color: var(--accent);
}

/* Animations */
.fade-in, .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible, .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(42, 45, 58, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
    gap: 1.5rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 0;
  }
  
  .nav-cta {
    margin-top: 1rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero {
    padding: 6rem 1rem 4rem;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .hero-actions, .cta-actions, .final-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .problem-grid, .solution-grid, .benefits-grid, .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-guarantee, .final-cta-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}