/* ===== НЕГІЗГІ СТИЛЬДЕР ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 50%, #ede7f6 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
  color: #333;
}

/* ===== ЖОҒАРҒЫ МЕНЮ ===== */
.top-menu {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #4a00e0, #8e2de2);
  color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.menu-logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
  padding: 12px 0;
}

.top-menu ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.top-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 16px;
  display: block;
  transition: background 0.2s;
  border-radius: 6px;
}

.top-menu a:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== HERO БӨЛІМІ ===== */
.hero {
  background: linear-gradient(135deg, #4a00e0, #8e2de2, #ff6b6b);
  color: white;
  text-align: center;
  padding: 120px 40px 60px;
  margin-bottom: 0;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  background: white;
  color: #4a00e0;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin: 40px auto;
  max-width: 960px;
  box-shadow: 0 8px 32px rgba(74, 0, 224, 0.08);
  border: 1px solid rgba(142, 45, 226, 0.1);
}

.container h2 {
  font-size: 26px;
  color: #4a00e0;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-desc {
  color: #666;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== ФОРМА GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.full-width {
  grid-column: 1 / -1;
}

/* ===== ФОРМА ЭЛЕМЕНТТЕРІ ===== */
.section {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
  font-size: 14px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background: #fafafa;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8e2de2;
  box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.1);
  background: white;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== CHECKBOX ТОБЫ ===== */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  background: #fafafa;
}

.checkbox-item:hover {
  border-color: #8e2de2;
  background: #f3e8ff;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8e2de2;
  cursor: pointer;
}

/* ===== БАТЫРМАЛАР ===== */
.main-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
  margin-bottom: 20px;
}

.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(142, 45, 226, 0.4);
}

.main-btn:active {
  transform: translateY(0);
}

.main-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background: white;
  color: #8e2de2;
  border: 2px solid #8e2de2;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 10px;
}

.secondary-btn:hover {
  background: #f3e8ff;
}

/* ===== НӘТИЖЕ БЛОГЫ ===== */
.result {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f4ff, #ede7f6);
  border-radius: 12px;
  border-left: 4px solid #8e2de2;
  min-height: 60px;
  line-height: 1.8;
  font-size: 15px;
  white-space: pre-wrap;
}

.result h3 {
  color: #4a00e0;
  margin-bottom: 12px;
  font-size: 18px;
}

.result .plan-section {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.result .plan-section h4 {
  color: #8e2de2;
  margin-bottom: 8px;
}

.placeholder-text {
  color: #aaa;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* Loading анимациясы */
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8e2de2;
  font-weight: 600;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #8e2de2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== НҰСҚАУЛЫҚ БӨЛІМІ ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.guide-card {
  background: linear-gradient(135deg, #fafafa, #f3e8ff);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e0d0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(142, 45, 226, 0.15);
}

.guide-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.guide-card h3 {
  color: #4a00e0;
  font-size: 17px;
  margin-bottom: 10px;
}

.guide-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.guide-tip {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #7b1fa2;
  font-style: italic;
}

/* ===== ҚАДАМДАР ===== */
.steps-section {
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
  border-radius: 16px;
  padding: 32px;
  color: white;
}

.steps-section h3 {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
}

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: white;
  color: #4a00e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.step-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.step-text p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

/* ===== ПЛАТФОРМАЛАР ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.platform-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #f0e8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(142, 45, 226, 0.2);
}

.platform-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 12px;
}

.platform-card h3 {
  color: #333;
  font-size: 17px;
  margin-bottom: 8px;
}

.platform-card p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.platform-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
  margin-bottom: 12px;
}

.platform-btn {
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
}

.platform-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== ЖҰЛДЫЗ БАҒАЛАУ ===== */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 36px;
  cursor: pointer;
  margin-top: 8px;
}

.star {
  color: #ddd;
  transition: color 0.15s, transform 0.15s;
}

.star:hover,
.star.active {
  color: #ffc107;
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(90deg, #4a00e0, #8e2de2);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer p {
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-menu {
    flex-direction: column;
    padding: 10px 20px;
  }

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

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

  .hero h1 {
    font-size: 28px;
  }

  .container {
    padding: 24px 20px;
    margin: 20px 16px;
  }

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