/*
 * MediKeeper Landing Page Styles
 */

/* ========== Navigation ========== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
}

.navbar-brand .logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar-menu a {
  color: var(--gray-700);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.navbar-menu a:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-700);
  transition: all var(--transition-fast);
}

@media (max-width: 767px) {
  .navbar-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4);
    gap: var(--space-4);
    display: none;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .navbar-actions .btn:not(.btn-primary) {
    display: none;
  }
}

/* ========== Hero Section ========== */

.hero {
  padding-top: 120px;
  padding-bottom: var(--space-24);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--success-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-text h1 {
  font-size: 4.5rem; /* 72px - увеличен */
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-700);
  font-size: var(--text-base);
}

.hero-feature::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--success);
  color: var(--white);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mascot Styles */
.mascot-container {
  position: relative;
  max-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.mascot-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

.mascot-greeting {
  position: absolute;
  top: 120px;
  right: -100px;
  z-index: 10;
  animation: fadeInScale 1s ease-out 0.5s both;
  max-width: 250px;
}

.greeting-bubble {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  position: relative;
  min-width: 200px;
}

.greeting-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid #1D4ED8;
}

.greeting-bubble p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.greeting-subtext {
  font-size: 14px !important;
  font-weight: 400 !important;
  opacity: 0.9;
  margin-top: 4px !important;
}

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

@keyframes fadeInScale {
  0% { 
    opacity: 0; 
    transform: scale(0.5) translateY(-20px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}

@media (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: var(--text-5xl);
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
}

/* ========== Problem Section ========== */

.problem-section {
  padding: var(--space-24) 0;
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: 3rem; /* 48px - увеличен */
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-xl);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  list-style: none;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  background-color: var(--danger-light);
  border-radius: var(--radius-lg);
}

.problem-content h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.problem-content p {
  color: var(--gray-600);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .problem-list {
    grid-template-columns: 1fr;
  }
  
  /* How It Works - mobile */
  .steps {
    grid-template-columns: 1fr;
  }
  
  .step::after {
    content: '↓';
    top: auto;
    bottom: -40px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .step:last-child::after {
    display: none;
  }
}

/* ========== How It Works Section ========== */

.how-section {
  padding: var(--space-24) 0;
  background-color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: '→';
  position: absolute;
  top: 48px;
  right: -40px;
  font-size: var(--text-4xl);
  color: var(--primary-light);
  font-weight: var(--font-bold);
}

.step:last-child::after {
  display: none;
}

.step-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  font-weight: var(--font-bold);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.step p {
  color: var(--gray-600);
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .steps {
    grid-template-columns: 1fr;
  }
  
  .step::after {
    content: '↓';
    top: auto;
    bottom: -40px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ========== Features Section ========== */

.features-section {
  padding: var(--space-24) 0;
  background-color: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  padding: var(--space-8);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  background-color: var(--primary-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Pricing Section ========== */

.pricing-section {
  padding: var(--space-24) 0;
  background-color: var(--white);
  overflow-x: hidden;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: var(--space-16) auto 0;
}

.pricing-card {
  position: relative;
  padding: var(--space-8);
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  max-width: 100%;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  /* transform: scale(1.05); - Removed to prevent horizontal scroll */
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  padding: var(--space-2) var(--space-4);
  background-color: var(--primary);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.pricing-plan {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--primary);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-price .currency {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

.pricing-price .currency-symbol {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  opacity: 0.8;
}

.pricing-period {
  color: var(--gray-600);
  font-size: var(--text-base);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--gray-700);
}

.pricing-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

@media (max-width: 767px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  /* Pricing price - smaller on mobile */
  .pricing-price {
    font-size: var(--text-3xl) !important;
  }
  
  .pricing-price .currency {
    font-size: var(--text-3xl) !important;
  }
  
  .pricing-price .currency-symbol {
    font-size: var(--text-lg) !important;
    opacity: 0.7;
  }
  
  .pricing-plan {
    font-size: var(--text-base);
  }
  
  .pricing-features {
    font-size: var(--text-sm);
  }
  
  .pricing-card {
    padding: var(--space-6);
  }
}

/* ========== CTA Section ========== */

.cta-section {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section .section-title {
  color: var(--white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

.cta-section .section-description {
  color: var(--primary-light);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
}

.cta-benefit::before {
  content: '✓';
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: var(--font-bold);
}

/* ========== Footer ========== */

.footer {
  padding: var(--space-16) 0 var(--space-8);
  background-color: var(--gray-900);
  color: var(--gray-400);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
}

.footer-logo .logo {
  font-size: var(--text-3xl);
}

.footer-description {
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
}

.footer-column h4 {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: 50%;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

@media (max-width: 1023px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ========== Enhanced Visual Improvements ========== */

/* Large feature icons */
.feature-icon-large {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem; /* 48px - увеличен */
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-lg);
}

/* Enhanced feature cards */
.feature-card-enhanced {
  padding: var(--space-8);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.feature-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Color accent sections */
.section-accent-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

.section-accent-success {
  background: linear-gradient(135deg, var(--success-light) 0%, var(--white) 100%);
}

/* Enhanced pricing cards */
.pricing-card-enhanced {
  position: relative;
  padding: var(--space-8);
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.pricing-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
}

.pricing-card-enhanced.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.pricing-card-enhanced.featured::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--warning) 100%);
}

/* Enhanced buttons */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-base);
}

.btn-enhanced:hover::before {
  left: 100%;
}

/* Visual separators */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
  margin: var(--space-16) 0;
}

/* Enhanced mobile responsiveness */
@media (max-width: 1023px) {
  .hero-text h1 {
    font-size: 3.5rem; /* 56px на планшетах */
  }
  
  .section-title {
    font-size: 2.5rem; /* 40px на планшетах */
  }
}

@media (max-width: 767px) {
  /* Prevent horizontal scroll */
  section {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .hero-text h1 {
    font-size: 2.5rem; /* 40px на мобильных */
  }
  
  .section-title {
    font-size: 2rem; /* 32px на мобильных */
  }
  
  .feature-icon-large {
    width: 64px;
    height: 64px;
    font-size: 2.5rem; /* 40px на мобильных */
  }
  
  /* Hero section mobile adjustments */
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .stat {
    padding: var(--space-4);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: var(--text-sm);
  }
  
  /* Mobile mascot adjustments */
  .mascot-container {
    max-width: 100%;
    overflow: visible;
    flex-direction: column;
  }
  
  .mascot-image {
    max-width: 280px;
    margin: 0 auto;
    order: 2;
  }
  
  .mascot-greeting {
    position: static;
    margin-top: 0;
    margin-bottom: var(--space-4);
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out 0.5s both;
    max-width: 90%;
    right: auto;
    top: auto;
    order: 1;
  }
  
  .greeting-bubble {
    padding: 20px;
    min-width: auto;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 auto;
  }
  
  .greeting-bubble::before {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #1D4ED8;
    border-bottom: none;
    top: auto;
    right: auto;
  }
  
  .greeting-bubble p {
    font-size: 16px;
  }
  
  .greeting-subtext {
    font-size: 13px !important;
  }
  
  /* Buttons on mobile */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
  
  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
  }
  
  /* Hero buttons */
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* FAQ accordion */
  .faq-question {
    font-size: var(--text-base);
    padding: var(--space-4);
  }
  
  .faq-answer {
    padding: var(--space-4);
    font-size: var(--text-sm);
  }
  
  /* CTA section */
  .cta-section .section-title {
    font-size: var(--text-3xl);
  }
  
  .cta-section .section-description {
    font-size: var(--text-base);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

