:root {
  --color-blue: #2E7CF6;
  --color-teal: #2DD4BF;
  --color-orange: #F97316;
  --color-yellow: #FBBF24;
  --color-dark: #1a1a2e;
  --color-gray: #64748b;
  --color-light: #f1f5f9;
  --color-telegram: #0088cc;
  --color-white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(46, 124, 246, 0.15);
  --shadow-hover: 0 8px 32px rgba(46, 124, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-dark);
  background: var(--color-light);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(241, 245, 249, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 124, 246, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.header .btn {
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-telegram {
  background: var(--color-telegram);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  gap: 8px;
}

.btn-telegram:hover {
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5);
}

.btn-telegram-icon {
  flex-shrink: 0;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Hero */
.hero {
  padding: 140px 0 32px;
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.12) 0%, rgba(45, 212, 191, 0.08) 50%, transparent 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-avatar {
  width: 192px;
  height: 192px;
  margin-bottom: 32px;
  border-radius: 32px;
  box-shadow: var(--shadow-hover);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 520px;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--color-gray);
  margin-bottom: 36px;
}

.cta-main {
  animation: pulse-subtle 2.5s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}

/* Features */
.features {
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06) 0%, rgba(249, 115, 22, 0.04) 100%);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(46, 124, 246, 0.15);
  box-shadow: 0 4px 16px rgba(46, 124, 246, 0.1);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 124, 246, 0.25);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-blue);
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-gray);
}

/* Gallery */
.gallery {
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(46, 124, 246, 0.08) 0%, rgba(45, 212, 191, 0.1) 100%);
}

.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: rgba(46, 124, 246, 0.1);
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  padding: 8px 24px;
}

.gallery-slide {
  flex-shrink: 0;
  width: 560px;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.2) 0%, rgba(45, 212, 191, 0.2) 100%);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox[data-open="true"] {
  pointer-events: auto;
}

.lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* How it works */
.how-it-works {
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(45, 212, 191, 0.1) 100%);
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  padding: 28px 24px;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(45, 212, 191, 0.2);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.2);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  background: var(--color-teal);
  border-radius: 12px;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.step-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-gray);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--color-teal);
  align-self: center;
  opacity: 0.7;
}

/* CTA section */
.cta-section {
  padding: 32px 0 40px;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.15) 0%, rgba(45, 212, 191, 0.1) 50%, rgba(249, 115, 22, 0.08) 100%);
  text-align: center;
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--color-dark);
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 24px 0;
  background: var(--color-dark);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 24px;
  }

  .hero-avatar {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
  }

  .features,
  .gallery,
  .how-it-works {
    padding: 24px 0;
  }

  .gallery-slide {
    width: 400px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }

  .step {
    max-width: 100%;
    min-height: 0;
  }

  .cta-section {
    padding: 24px 0 32px;
  }
}

@media (max-width: 600px) {
  .header .container {
    padding: 0 12px;
  }

  .header .logo-text {
    display: none;
  }

  .header .logo-img {
    width: 40px;
    height: 40px;
  }

  .header .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .header .btn-telegram-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .header .btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 24px 20px;
  }
}
