:root {
  --brand-blue: #63A3ED;
  --brand-green: #2BAE66;
  --dark-blue-bg: #0F172A; /* Глубокий благородный синий вместо черного */
  --soft-blue-bg: rgba(99, 163, 237, 0.06); /* Мягкий пастельный синий */
  --text-dark: #1E293B;
  --text-muted: #64748B;
}

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

html {
  scroll-behavior: smooth;
  }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
}

.brand-logo {
  height: 54px;
  width: auto;
}


nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem; 
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}


/* Кнопки теперь горят фирменным синим */
.btn-get-app {
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 17px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(99, 163, 237, 0.4);
}

.btn-get-app:hover {
    background-color: #4A8EDC;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 163, 237, 0.6);
}


/* Section Commons */
section {
  padding: 80px 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero-section {
    background-color: #FFFFFF;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.8px;
}

.hero-text p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.4;
}

.app-logo-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 85px;
  height: 85px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-logo-badge img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-badge img {
  height: 50px;
  display: block;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item .stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-item .stat-label {
  font-size: 15px;
  color: var(--text-muted);
}

.rating-badge {
    color: var(--brand-green);
    font-weight: bold;
}


/* Интерактивный живой слайдер мокапов */
.hero-mockup {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
  height: 600px;
  width: 300px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 300px;
  border-radius: 42px;
  box-shadow: var(--shadow-hero);
  border: 5px solid #ffffff;
  opacity: 0;
  animation: imageFade 12s infinite ease-in-out;
}

/* Чередование трех экранов приложения (каждый по 4 секунды) */
.mockup-img:nth-child(1) { animation-delay: 0s; }
.mockup-img:nth-child(2) { animation-delay: 4s; }
.mockup-img:nth-child(3) { animation-delay: 8s; }

@keyframes imageFade {
  0% { opacity: 0; transform: scale(0.98); }
  8% { opacity: 1; transform: scale(1); }
  33% { opacity: 1; }
  41% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; }
}


/* Features Section */
.features-section {
    background-color: var(--soft-blue-bg);
    padding: 100px 0;
    border-top: 1px solid rgba(99, 163, 237, 0.1);
    border-bottom: 1px solid rgba(99, 163, 237, 0.1);
}

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

/* Карточки внутри фич делаем белыми, чтобы они "выпрыгивали" на пастельном фоне */
.feature-card {
    background: #FFFFFF;
    border: 1px solid rgba(99, 163, 237, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(99, 163, 237, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 163, 237, 0.1);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background-color: var(--card-bg);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.review-stars {
  color: #ffb100;
  font-size: 27px;
  margin-bottom: 5px;
}

.review-text {
  font-size: 15px;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.6;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-lang {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

/* Languages Section */
.languages-section {
    background-color: var(--soft-blue-bg);
    padding: 80px 0;
  text-align: center;
}


.lang-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
}

.lang-item {
  background: var(--bg-accent);
  padding: 8px 14px;
  border-radius: 20px;
}


/* 1. Блок FAQ — делаем белым, а карточки выделяем границами */
.faq {
    background-color: #ffffff !important; /* Делаем фон чисто белым */
    padding: 80px 20px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}


/* Карточки FAQ внутри темного блока */
.faq-item {
  background: var(--soft-blue-bg);
  border: 1px solid #ccc;
  box-shadow: var(--brand-blue);
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 30px;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-blue);
}


.faq-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* Download CTA Section */
.download-cta p {
  font-size: 18px;
  color: #94A3B8 !important; /* Мягкий серый текст для описания на темном фоне */
}

.download-cta {
    background-color: var(--dark-blue-bg);
    color: #FFFFFF;
    padding: 100px 0;
    position: relative;
    text-align: center;
  }

.download-cta h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 12px;
}

.download-cta .store-buttons {
  justify-content: center;
  margin: 30px 0 0 0;
}



/* Feedback Form Section */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-accent);
  padding: 0 32px 32px 32px;
  border-radius: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  background: var(--soft-blue-bg);
  border: 1px solid #ccc;
  color: var(--text-main);
  outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(99, 163, 237, 0.25);
}

.btn-submit {
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 10px 14px;
  border: none;
  border-radius: 17px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(99, 163, 237, 0.4);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #4A8EDC;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 163, 237, 0.6);
}


/* Footer */
footer {
  background-color: #0B1220; /* Чуть темнее основного темного блока для завершения */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 20px;
  font-size: 13px;
  color: #64748B;
  text-align: center;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 960px) {
  .hero-grid{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 0 80px 0;
    gap: 50px;  
  }
  .store-buttons {
      justify-content: center;
  }
  .hero-stats {
      justify-content: center;
  }
  .slider-container{
    height: 480px;
  }
  .languages-container{
    padding: 0 20px
  }
}


@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .download-cta h2{
    font-size: 2rem;
  }
  nav {
      display: none; /* Can be enhanced to a burger menu later if needed */
  }
  .section-title {
      font-size: 26px;
  }
}

@media (max-width: 360px) {
  .hero-grid{
    padding: 40px 0 0px 0;
  }

  .hero-text h1 {
    font-size: 2.0rem;
  }
  
  .hero-stats{
    flex-direction: column;
  }

  .hero-mockup{
    width: 260px;
  }

  .lang-list{
    gap: 5px;
  }
  .lang-item{
    /* padding: 8px 5px; */
  }

  .form-container{
    padding: 0;
  }

  .download-cta h2{
    font-size: 2rem;
  }

}
