:root {
  --accent: #D94A65;
  --primary: #3891DA;
  --bg: #f8fafc;
  --text: #262626;
}

/* ====== СБРОС ====== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* чтобы ни при каких обстоятельствах не было скролла */
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

/* ====== HEADER & MENU ====== */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(56,145,218,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 12px 2%;
}
@media (max-width: 600px) {
  .main-header {
    padding: 8px 2%;
  }
}
@media (max-width: 400px) {
  .main-header {
    padding: 6px 1%;
  }
}

.logo,
.desktop-menu,
.menu-toggle {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.logo img {
  height: 36px;
  margin-right: 10px;
  opacity: 1;
}
.logo .accent {
  color: var(--accent);
  margin-left: 6px;
}
.desktop-menu {
  display: flex;
  gap: 22px;
}
.desktop-menu a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1rem;
  padding: 4px 0;
}
.desktop-menu a:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 36px;
  width: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.menu-toggle span {
  display: block;
  height: 4px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  width: 100%;
  transition: 0.3s;
}

/* ====== MOBILE MENU ====== */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 1500;
  box-shadow: 0 2px 16px rgba(56,145,218,0.14);
  padding: 24px 0 12px 0;
  gap: 10px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a, .mobile-menu button {
  padding: 12px 22px;
  font-size: 1.08rem;
  color: var(--primary);
  text-decoration: none;
  border: none;
  background: none;
  font-weight: bold;
  text-align: left;
}
.mobile-menu .buy-btn, .mobile-menu .cta-btn {
  width: 90%;
  margin: 6px auto;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
}
.mobile-menu .buy-btn {
  background: var(--accent);
}

/* ====== ЕДИНЫЙ СТИЛЬ ЗАГОЛОВКОВ РАЗДЕЛОВ ====== */
.section-title {
  display: block;
  padding-top: 40px;
  width: 100%;
  margin: 0 auto 28px auto;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.22;
  background: transparent;
}
@media (max-width: 700px) {
  .section-title {
    font-size: 1.32rem;
    margin-bottom: 20px;
  }
}

/* ====== FIX ДЛЯ ЯКОРЕЙ (scroll-padding-top) ====== */
html {
  scroll-padding-top: 130px;
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 100px;
  }
}

/* ====== CTA-КНОПКИ (ГЛОБАЛЬНО) ====== */
.cta-btn, .buy-btn, .ghost-btn {
  display: inline-block;
  border-radius: 22px;
  padding: 12px 34px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  outline: none;
  margin: 0 4px 6px 0;
  box-shadow: 0 2px 8px rgba(56,145,218,0.07);
}
.cta-btn, .buy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cta-btn:hover, .buy-btn:hover {
  background: var(--accent);
  color: #fff;
}
.ghost-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.ghost-btn:hover {
  background: var(--primary);
  color: #fff;
}
.buy-btn.alt {
  background: var(--accent);
}
.buy-btn.alt:hover {
  background: var(--primary);
  color: #fff;
}
.hero-actions,
.forwho-cta,
.faq-cta,
.section-actions,
.sub-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== SUB-HEADER (CTA-PANEL) ====== */
.sub-header {
  background: linear-gradient(90deg, #D94A65 0%, #3891DA 100%);
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(56,145,218,0.08);
  position: sticky;
  top: 64px;
  z-index: 990;
}

/* ====== HERO (ПЕРВЫЙ ЭКРАН) ====== */
.hero-flex {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 16px 44px;
  background: linear-gradient(180deg, #f8fafc 70%, #f1f7fd 100%);
  gap: 0;
}
.hero-logo, .hero-inner {
  flex: 1 1 0;
  width: 50%;
  min-width: 0;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo {
  align-items: center;
  justify-content: center;
  padding-right: 30px;
}
.hero-inner {
  justify-content: center;
  padding-left: 30px;
}
@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    gap: 18px;
    padding: 34px 6vw 28px 6vw;
    align-items: center;
    text-align: center;
  }
  .hero-logo, .hero-inner {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

/* ====== FORWHO (ДЛЯ КОГО) ====== */
.forwho-section {
  background: #fff;
  padding: 0 10px 28px;
}
.forwho-list {
  max-width: 650px;
  margin: 0 auto 12px;
  font-size: 1.1rem;
  color: #333;
  padding-left: 18px;
}
.forwho-list li {
  margin-bottom: 9px;
}
.forwho-cta {
  margin-top: 18px;
}

/* ====== FEATURES (ВОЗМОЖНОСТИ) ====== */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px 36px;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}
.feature {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(217,74,101,0.04);
  padding: 26px 18px;
  text-align: center;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  overflow: hidden;
  width: 100px;
  height: 100px;
  background: #f3f7fb;
  box-shadow: 0 2px 8px rgba(56,145,218,0.07);
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-desc {
  color: #444;
  font-size: 0.98rem;
  min-height: 48px;
}

/* ====== BENEFITS ====== */
.benefits-section {
  background: #fff;
  padding: 0 10px 36px;
}
.benefits-list {
  max-width: 650px;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 1.1rem;
  color: #333;
}
.benefits-list li {
  margin-bottom: 8px;
}

/* ====== SCREENSHOTS ====== */
.screenshots-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px 44px 16px;
}
.screenshots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.screenshots-list img {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(56,145,218,0.12);
  width: 240px;
  max-width: 95vw;
  background: #fff;
}

/* ====== TESTIMONIALS / ОТЗЫВЫ ====== */
.testimonials-section {
  background: #f8fafc;
  padding: 0 10px 32px 10px;
  text-align: center;
}
.testimonial {
  max-width: 480px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 12px;
  padding: 22px 14px;
  box-shadow: 0 2px 10px rgba(56,145,218,0.07);
  color: #262626;
  font-style: italic;
}

/* ====== FAQ ====== */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 12px 36px;
}
.faq-list dt {
  font-weight: bold;
  color: var(--accent);
  margin-top: 16px;
}
.faq-list dd {
  margin: 0 0 10px 0;
  color: #444;
}
.faq-cta {
  margin-top: 22px;
}

/* ====== CONTACT ====== */
.contact-section {
  background: #fff;
  padding: 0 10px 34px;
  text-align: center;
}
.contact-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}
.contact-form label {
  display: block;
  margin: 16px 0 6px 0;
  color: #444;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c2daf6;
  border-radius: 7px;
  margin-bottom: 8px;
  font-size: 1rem;
  background: #f7fbfe;
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 24px;
  font-size: 1rem;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}
.contact-form button:hover {
  background: var(--accent);
}

/* ====== FOOTER ====== */
footer {
  background: #fff;
  text-align: center;
  padding: 24px 10px 16px;
  color: #666;
  font-size: 0.99rem;
  border-top: 1px solid #e6e9ef;
  margin-top: 24px;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 1100px) {
  .desktop-menu {
    gap: 12px;
    font-size: 0.95rem;
  }
  .features-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .desktop-menu {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .sub-header {
    display: none;
  }
}
@media (max-width: 700px) {
  .logo {
    font-size: 1.1rem;
  }
  .features-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature, .testimonial, .screenshots-list img {
    max-width: 95vw;
  }
  .hero-inner {
    padding: 0 0;
  }
  .hero-list {
    flex-direction: column;
    gap: 13px;
    align-items: center;
  }
  .hero-list li {
    width: 92vw;
    max-width: 350px;
    text-align: center;
    padding: 10px 12px;
  }
  .hero-actions,
  .forwho-cta,
  .faq-cta,
  .section-actions,
  .sub-header {
    gap: 8px;
    flex-direction: column;
  }
}
