:root {
  --lp-primary: #16a34a;
  --lp-primary-hover: #15803d;
  --lp-primary-light: #f0fdf4;
  --lp-bg: #ffffff;
  --lp-bg-soft: #f9fafb;
  --lp-text: #1f2937;
  --lp-text-secondary: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
  margin: 0;
}

/* ── Accent color helper ── */
.text-accent { color: var(--lp-primary); }

/* ── Buttons ── */
.btn { --bs-btn-padding-y: 0.65rem; font-weight: 600; }

.btn-primary,
.btn-primary:focus {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
  --bs-btn-active-bg: #15803d;
  --bs-btn-active-border-color: #15803d;
  --bs-btn-disabled-bg: #16a34a;
  --bs-btn-disabled-border-color: #16a34a;
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.btn-primary:hover {
  background-color: #15803d;
  border-color: #15803d;
}

.btn-outline-dashed {
  border: 2px dashed rgba(0,0,0,0.15);
  background: transparent;
  color: inherit;
  border-radius: 12px;
}
.btn-outline-dashed:hover { background: var(--lp-primary-light); }

/* ── Section helpers ── */
.section-title { font-weight: 800; font-size: 1.75rem; }
.section-subtitle { color: var(--lp-text-secondary); max-width: 560px; margin: 0 auto; }

/* ── Header ── */
header { background: var(--lp-bg); }
header .navbar-brand { font-size: 1.15rem; letter-spacing: -0.02em; }

/* ── Hero ── */
.hero-section { padding: 60px 0 80px; }

.hero-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--lp-text-secondary);
  margin-top: 16px;
}

.hero-benefits { margin-top: 20px; }
.hero-benefits li {
  font-size: 1rem;
  line-height: 2;
  font-weight: 500;
}

/* ── Comparison slider ── */
.compare {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
}

.compare__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.compare__overlay .compare__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.compare__divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 2;
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--lp-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  user-select: none;
}

.compare__label {
  position: absolute;
  bottom: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare__label--left { left: 12px; }
.compare__label--right { right: 12px; }

/* Fallback when images are missing */
.compare__img[src=""] ,
.compare__img:not([src]) {
  background: #e5e7eb;
}

/* ── Reviews (Swiper) ── */
.reviews-section {
  padding: 80px 0;
  background: var(--lp-bg-soft);
}

.reviews-swiper {
  --swiper-navigation-color: #16a34a;
  --swiper-pagination-color: #16a34a;
  --swiper-navigation-size: 22px;
  padding: 0 40px 8px;
}

.reviews-swiper .swiper-pagination {
  position: static;
  margin-top: 20px !important;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: var(--lp-primary);
}

.review-card {
  border-radius: 16px;
  transition: box-shadow 0.2s ease;
}
.review-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.review-card img.rounded-circle {
  object-fit: cover;
  aspect-ratio: 1;
}

.review-stars {
  color: #ca8a04;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.reviews-nav.swiper-button-prev,
.reviews-nav.swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.reviews-nav.swiper-button-prev::after,
.reviews-nav.swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 576px) {
  .reviews-swiper {
    padding-left: 0;
    padding-right: 0;
  }
  .reviews-nav {
    display: none;
  }
}

/* ── Примеры работ ── */
.examples-section {
  padding: 80px 0;
}

.example-work .compare {
  margin: 0 auto;
}

/* ── Benefits ── */
.benefits-section {
  padding: 80px 0;
}

.benefit-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lp-primary-light);
  color: var(--lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.9rem;
  color: var(--lp-text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ── Try / Upload section ── */
.try-section {
  padding: 80px 0;
  background: var(--lp-bg-soft);
}

.upload-zone {
  border: 2px dashed rgba(0,0,0,0.12);
  border-radius: 16px;
  background: var(--lp-bg-soft);
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover { border-color: rgba(0,0,0,0.2); }
.upload-zone.dragover {
  border-color: var(--lp-primary);
  background: var(--lp-primary-light);
}

.upload-selected { display: block; }
.upload-item { border: 0; }

.upload-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex: 0 0 100px;
  background: #f3f4f6;
  border-radius: 10px;
}

.quick-presets .btn {
  padding: 4px 10px;
  font-size: 0.82rem;
}
.quick-presets .btn:hover,
.quick-presets .btn:focus {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
}

.price { font-weight: 600; }

.prompt-preview-area {
  resize: vertical;
  min-height: 200px;
  background: var(--lp-bg-soft);
  line-height: 1.45;
}

/* ── Footer ── */
footer { background: var(--lp-bg-soft); }
footer .nav-link { color: inherit; opacity: 0.7; }
footer .nav-link:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-section { padding: 40px 0 60px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 24px 0 40px; }
  .hero-title { font-size: 1.6rem; }
  .section-title { font-size: 1.4rem; }

  .upload-item {
    flex-direction: column;
    align-items: stretch;
  }
  .upload-thumb {
    width: 100%;
    height: auto;
    max-height: 200px;
    flex: 0 0 auto;
  }

  .compare { aspect-ratio: 1 / 1; }
}

#add-more:hover {
  border-color: rgba(0,0,0,0.25) !important;
}

/* Checkbox accent */
.form-check-input:checked {
  background-color: var(--lp-primary);
  border-color: var(--lp-primary);
}
