/* Бебро — bebro.live | CSS с нуля */
/* Typo G: Comfortaa + PT Sans | Buttons B: Pill | Nav D: Dark | Hero F: Diagonal | Cards G: Horizontal | Sections E: Gradient | FAQ D: All visible | Footer D: Two-level | Anim E: Hover */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=PT+Sans:wght@400;700&display=swap');

:root {
  --primary: #8B5CF6;
  --primary-dark: #6D28D9;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --bg: #FAFAF5;
  --bg-alt: #F0EFEA;
  --card-bg: #FFFFFF;
  --text: #1E1E2E;
  --text-muted: #6B6B80;
  --border: #DDD8D0;
  --radius: 16px;
  --pill: 50px;
  --hero-gradient: linear-gradient(135deg, #8B5CF6, #6D28D9);
  --section-gradient-1: linear-gradient(180deg, #FAFAF5 0%, #F0EFEA 100%);
  --section-gradient-2: linear-gradient(180deg, #F0EFEA 0%, #FAFAF5 100%);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --glow-amber: 0 0 20px rgba(245, 158, 11, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  line-height: 1.25;
}

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

ul { list-style: none; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================
   NAV D: Dark header
   ============================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1E1E2E;
  padding: 0 0;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.header-logo span {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-family: 'PT Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #000000 !important;
  font-weight: 800 !important;
  padding: 10px 26px;
  border-radius: var(--pill);
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1E1E2E;
  z-index: 999;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #fff;
  font-family: 'Comfortaa', cursive;
  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-nav .nav-cta {
  margin-top: 12px;
  text-align: center;
  width: 220px;
}

/* ==============================
   HERO F: Diagonal clip-path
   ============================== */

.hero {
  padding: 130px 0 120px;
  background: var(--hero-gradient);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--pill);
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--pill);
  font-size: 1.05rem;
  font-family: 'PT Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-amber);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--pill);
  font-size: 1.05rem;
  font-family: 'PT Sans', sans-serif;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}

.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-badge .emoji {
  font-size: 1.2rem;
}

/* ==============================
   STATS BAR
   ============================== */

.stats-bar {
  background: var(--section-gradient-1);
  padding: 48px 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: 'Comfortaa', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==============================
   SECTION BASE
   ============================== */

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Gradient transitions between sections */
.section-gradient-1 {
  background: var(--section-gradient-1);
}

.section-gradient-2 {
  background: var(--section-gradient-2);
}

.section-purple-soft {
  background: linear-gradient(180deg, #F0EFEA 0%, #EDE9FE 50%, #F0EFEA 100%);
}

/* ==============================
   FEATURES — Cards G: Horizontal
   ============================== */

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glow-purple);
  border-color: var(--primary);
}

.feature-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.feature-text h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================
   DOWNLOAD PLATFORMS
   ============================== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: block;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
  border-color: var(--primary);
}

.platform-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.platform-name {
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.platform-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================
   PRICE C: Horizontal banner
   ============================== */

.trial-banner {
  background: var(--hero-gradient);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}

.trial-banner-text h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
}

.trial-banner-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.trial-banner .btn-primary {
  flex-shrink: 0;
}

/* ==============================
   FAQ D: All-visible cards
   ============================== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
  border-color: var(--primary);
}

.faq-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==============================
   CTA BANNER
   ============================== */

.cta-banner {
  text-align: center;
  padding: 72px 20px;
  background: var(--hero-gradient);
  color: #fff;
  border-radius: 0;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  font-size: 1.1rem;
  padding: 16px 44px;
}

/* ==============================
   FOOTER D: Two-level
   ============================== */

.footer {
  background: #1E1E2E;
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .header-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ==============================
   INSTRUKTSIYA PAGES
   ============================== */

.instr-hero {
  padding: 120px 0 80px;
  background: var(--hero-gradient);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  text-align: center;
}

.instr-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.instr-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

.step-section {
  padding: 56px 0;
}

.step-block {
  max-width: 760px;
  margin: 0 auto 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  transition: box-shadow 0.25s;
}

.step-block:hover {
  box-shadow: var(--glow-purple);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--hero-gradient);
  color: #fff;
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-block h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.step-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.step-block a {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.2s;
}

.step-block a:hover {
  color: var(--primary-dark);
}

.after-payment {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 36px 40px;
  background: linear-gradient(135deg, #EDE9FE, #FEF3C7);
  border-radius: var(--radius);
}

.after-payment h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.after-payment p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.after-payment ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.after-payment li {
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.instr-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 500px;
}

.instr-platforms .platform-card {
  padding: 16px 12px;
}

.instr-cta {
  text-align: center;
  padding: 56px 20px;
  max-width: 760px;
  margin: 0 auto;
}

.instr-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.instr-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 110px 0 100px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .platforms-grid { grid-template-columns: repeat(2, 1fr); }

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

  .trial-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .instr-platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-desc { font-size: 1rem; }
  .hero { padding: 100px 0 90px; min-height: auto; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; text-align: center; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.55rem; }

  .feature-card { padding: 20px; }
  .feature-emoji { font-size: 1.8rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-number { font-size: 1.5rem; }

  .platforms-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .trust-badges { gap: 14px; }

  .step-block { padding: 24px 20px; }
  .after-payment { padding: 24px 20px; }
  .instr-platforms { grid-template-columns: 1fr 1fr; }

  .instr-hero h1 { font-size: 1.7rem; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .instr-platforms { grid-template-columns: 1fr; }
}
