/* Base Styles */
:root {
  --primary: #0066ff;
  --primary-dark: #004dc3;
  --secondary: #00ccff;
  --dark: #002651;
  --light: #f0f6ff;
  --gray: #6f8ab4;
  --border: #c5d7f5;
  --radius: 0.5rem;
  --shadow-sm: 0 2px 4px rgba(0, 38, 81, 0.08);
  --shadow: 0 4px 10px rgba(0, 38, 81, 0.15);
  --shadow-lg: 0 10px 20px rgba(0, 38, 81, 0.2);
  --gradient-bg: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
  --gradient-dark: linear-gradient(135deg, #004dc3 0%, #0099ff 100%);
  --youtube: #ff0000;
  --instagram: #e1306c;
  --tiktok: #000000;
  --twitter: #1da1f2;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  background-image: linear-gradient(120deg, #e0eaff 0%, #f0f6ff 50%, #dce7ff 100%);
  background-size: 400% 400%;
  animation: gradient-bg 15s ease infinite;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

@keyframes gradient-bg {
  0% {background-position: 0% 50%}
  50% {background-position: 100% 50%}
  100% {background-position: 0% 50%}
}

html {scroll-behavior: smooth;}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--dark);
}

h1 {font-size: 2.4rem;}
h2 {font-size: 1.8rem;}
h3 {font-size: 1.4rem;}
p {margin-bottom: 1rem;}

.gradient-text {
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

img {max-width: 100%; height: auto;}
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {color: var(--primary-dark);}
ul {list-style: none;}
section {padding: 70px 0;}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-bg);
  color: white;
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--gradient-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-telegram {
  background-color: #0088cc;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.btn-telegram:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0088cc, #29b6f6);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-telegram:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 7px 20px rgba(0, 136, 204, 0.5);
  color: white;
}

.btn-telegram:hover:before {
  opacity: 1;
}

.btn-telegram i {
  margin-left: 10px;
  margin-right: 0;
  font-size: 1.2rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.section-header h2 {margin-bottom: 1rem;}
.section-header p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: 15px 0;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.logo img {height: 40px; margin-right: 10px;}

nav {display: flex; align-items: center;}
nav a {
  margin: 0 15px;
  color: var(--dark);
  font-weight: 500;
}
nav a:hover {color: var(--primary);}

.nav-buttons {display: flex; margin-left: 20px;}
.nav-buttons .btn {margin-left: 10px;}

.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 150px 0 80px;
  position: relative;
  text-align: center;
  min-height: 500px;
  margin-top: 70px;
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2.5rem;
}

.hero-image {
  margin: 40px auto 0;
  position: relative;
  max-width: 800px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 10px;
}

.card-1 {
  top: 20%;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  right: 0;
  animation-delay: 1.5s;
}

@keyframes float {
  0% {transform: translateY(0px);}
  50% {transform: translateY(-10px);}
  100% {transform: translateY(0px);}
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-bg);
  z-index: -1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  position: relative;
}

.steps:before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Counter Section */
.counter-section {
  background: var(--gradient-bg);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.counter-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.counters {
  display: flex;
  justify-content: space-around;
  text-align: center;
  position: relative;
  z-index: 2;
}

.counter {
  max-width: 200px;
}

.counter-value {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.counter-label {
  font-size: 1rem;
  opacity: 0.9;
}

.counter i {
  font-size: 2rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 800px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 20px;
  height: auto;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

.testimonial-text:before, .testimonial-text:after {
  content: '"';
  font-size: 50px;
  color: rgba(0, 102, 255, 0.1);
  position: absolute;
  font-family: Georgia, serif;
}

.testimonial-text:before {
  top: -20px;
  left: -10px;
}

.testimonial-text:after {
  bottom: -40px;
  right: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230066ff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  background: white;
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  border-top: 5px solid var(--primary);
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  color: var(--gray);
}

.form-disclaimer {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 15px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: white;
}

.footer-logo img {height: 40px; margin-right: 10px;}

.footer-text {
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-column h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links li {margin-bottom: 10px;}
.footer-links a {color: rgba(255, 255, 255, 0.7);}
.footer-links a:hover {color: white;}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-bottom-links {display: flex; gap: 20px;}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-bottom-links a:hover {color: white;}

/* Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  h1 {font-size: 2.5rem;}
  h2 {font-size: 2rem;}
  
  .hero-content h1 {font-size: 2.5rem;}
  
  .features-grid {grid-template-columns: repeat(2, 1fr);}
  
  .steps {flex-direction: column;}
  .steps:before {display: none;}
  .step {width: 100%; margin-bottom: 30px;}

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

@media screen and (max-width: 768px) {
  header {padding: 10px 0;}
  .mobile-toggle {display: none;}
  
  nav {
    display: none;
  }
  
  .nav-buttons {
    margin: 0;
    display: flex;
    flex-direction: row;
    width: auto;
    position: static;
  }
  
  .nav-buttons .btn {
    margin: 0;
    width: auto;
  }
  
  .features-grid {grid-template-columns: 1fr;}
  
  .counters {flex-direction: column; align-items: center;}
  .counter {margin-bottom: 30px;}
  
  .cta-content {padding: 30px 20px;}
  
  .hero-cta {flex-direction: column;}
}

@media screen and (max-width: 480px) {
  section {padding: 50px 0;}
  h1 {font-size: 2rem;}
  h2 {font-size: 1.75rem;}
  
  .footer-grid {grid-template-columns: 1fr;}
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {margin-top: 15px;}
} 