/* =============================================
   INDEX.CSS — стили главной страницы
   ============================================= */

/* ---- Фильтры тем ---- */
.themes-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 28px;
}

.tf-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--gray);
  transition: all .15s;
}
.tf-btn:hover  { border-color: var(--pink); color: var(--pink); }
.tf-btn.active { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* ---- Hero ---- */
.hero {
  background: var(--white);
  padding: 72px 6% 80px;
  position: relative;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero__blob--1 { width: 480px; height: 480px; background: rgba(255,107,157,.12); top: -120px; right: -100px; }
.hero__blob--2 { width: 360px; height: 360px; background: rgba(255,159,67,.10); bottom: -80px; left: -60px; }
.hero__blob--3 { width: 280px; height: 280px; background: rgba(168,85,247,.08); top: 50%; right: 30%; }

.hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-bg);
  border: 2px solid #fecdd3;
  color: var(--pink);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero__h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray);
}

/* Карточка-превью в герое */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border2);
  box-shadow: 0 20px 60px rgba(255,107,157,.12);
  overflow: hidden;
}

.hc__top {
  background: linear-gradient(135deg, var(--pink-bg), var(--orng-bg));
  padding: 24px;
  border-bottom: 2px solid var(--border2);
}

.hc__top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.hc__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); }

.hc__title { font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.hc__sub   { font-size: .8rem; color: var(--gray); }

.hc__themes {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hc__theme-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  transition: .15s;
  font-family: 'Nunito', sans-serif;
}
.hc__theme-btn.active,
.hc__theme-btn:hover {
  background: var(--pink-bg);
  border-color: #fda4af;
  color: var(--pink);
}

.hc__body { padding: 22px; }

.hc__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border2);
}
.hc__step:last-child { border-bottom: none; }

.hc__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc__text { font-size: .88rem; line-height: 1.6; color: #374151; }
.hc__text.blurred { filter: blur(4.5px); user-select: none; }
.hc__text .nm { color: var(--pink); font-weight: 800; }

.hc__footer {
  background: #fffbf8;
  border-top: 2px solid var(--border2);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hc__price { font-size: 1.2rem; font-weight: 900; }
.hc__price-old { font-size: .75rem; color: #d1d5db; text-decoration: line-through; }

/* ---- Stats bar ---- */
.stats-bar {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 28px 6%;
}

.stats-bar__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-bar__item { text-align: center; }
.stats-bar__num  { font-size: 1.8rem; font-weight: 900; color: var(--white); }
.stats-bar__label{ font-size: .78rem; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ---- How it works ---- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--border2);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255,107,157,.1);
}
.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.how-card:nth-child(1)::before { background: linear-gradient(90deg, var(--pink), var(--pink2)); }
.how-card:nth-child(2)::before { background: linear-gradient(90deg, var(--orange), var(--orange2)); }
.how-card:nth-child(3)::before { background: linear-gradient(90deg, var(--purple), #c084fc); }

.how-card__icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}
.how-card__icon--pink   { background: var(--pink-bg); }
.how-card__icon--orange { background: var(--orng-bg); }
.how-card__icon--purple { background: var(--purp-bg); }

.how-card__num {
  position: absolute;
  bottom: 20px; right: 22px;
  font-size: 3.5rem;
  font-weight: 900;
  color: #f0e8f5;
  line-height: 1;
  pointer-events: none;
}

.how-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 8px; }
.how-card p  { font-size: .88rem; color: var(--gray); line-height: 1.7; }

/* ---- Themes grid ---- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.theme-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: .22s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.theme-card:hover {
  border-color: var(--pink);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(255,107,157,.13);
}

.theme-card--popular::after {
  content: '🔥 хит';
  position: absolute;
  top: -10px; right: 10px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 100px;
  box-shadow: 0 3px 10px rgba(255,107,157,.3);
}

.theme-card__emoji { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.theme-card__name  { font-size: .92rem; font-weight: 800; margin-bottom: 3px; }
.theme-card__age   { font-size: .75rem; color: var(--gray); }
.theme-card__price {
  font-size: .82rem; font-weight: 800; color: var(--pink);
  margin-top: 10px;
  background: var(--pink-bg);
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-block;
}

/* ---- Генератор в главной ---- */
.main-gen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gen-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--border2);
  box-shadow: 0 8px 32px rgba(255,107,157,.08);
}

.gen-result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255,107,157,.08);
}

.gf__label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 6px;
}

.gf__input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: .95rem;
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  transition: .15s;
  margin-bottom: 14px;
}
.gf__input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,107,157,.1); }
.gf__input::placeholder { color: #d1d5db; }

.gf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Результат генератора */
.gr__head {
  background: linear-gradient(135deg, var(--pink-bg), var(--orng-bg));
  padding: 22px 26px;
  border-bottom: 2px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gr__head-title { font-size: 1rem; font-weight: 900; }

.gr__preview-tag {
  background: var(--white);
  color: var(--pink);
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 100px;
  border: 2px solid #fda4af;
}

.gr__body { padding: 24px; }

.qstep {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 2px dashed var(--border2);
}
.qstep:last-child { border-bottom: none; }

.qstep__dot {
  width: 36px; height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.qd1 { background: var(--pink-bg); }
.qd2 { background: var(--orng-bg); }
.qd3 { background: var(--purp-bg); }
.qd4 { background: #f0fdf4; }
.qd5 { background: var(--orng-bg); }

.qstep__label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 3px; }
.qstep__text  { font-size: .88rem; line-height: 1.6; color: #374151; }
.qstep__text .nm { color: var(--pink); font-weight: 800; }
.qstep__text.blurred { filter: blur(5px); user-select: none; }

.gr__foot {
  background: #fffbf8;
  border-top: 2px solid var(--border2);
  padding: 20px 26px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.gr__price { font-size: 1.5rem; font-weight: 900; }
.gr__price-info { font-size: .78rem; color: var(--gray); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  background: var(--white);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
}

.price-card--best {
  border-color: var(--pink);
  background: linear-gradient(160deg, var(--pink-bg), var(--orng-bg));
  box-shadow: 0 12px 40px rgba(255,107,157,.15);
}

.price-card__best-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 20px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,107,157,.4);
}

.price-card__icon  { font-size: 2.2rem; margin-bottom: 14px; }
.price-card__name  { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 8px; }
.price-card__val   { font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.price-card__val span { font-size: 1rem; font-weight: 700; color: var(--gray); }
.price-card__per   { font-size: .82rem; color: var(--gray); margin-bottom: 22px; }

.price-card__feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.price-card__feats li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; }
.pf-off { opacity: .35; }

.btn-price {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: .2s;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-price--fill {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 16px rgba(255,107,157,.3);
}
.btn-price--fill:hover { transform: translateY(-1px); }
.btn-price--outline {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--gray);
}
.btn-price--outline:hover { border-color: var(--pink); color: var(--pink); }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.rev-card {
  background: var(--white);
  border-radius: 22px;
  padding: 26px;
  border: 2px solid var(--border2);
  transition: transform .2s, box-shadow .2s;
}
.rev-card:hover {
  box-shadow: 0 8px 28px rgba(255,107,157,.1);
  transform: translateY(-2px);
}

.rev-card__stars  { font-size: 1rem; color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }
.rev-card__text   { font-size: .9rem; color: #374151; line-height: 1.75; margin-bottom: 16px; font-style: italic; }
.rev-card__author { display: flex; align-items: center; gap: 12px; }
.rev-card__ava    { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.rev-card__name   { font-size: .88rem; font-weight: 800; }
.rev-card__city   { font-size: .75rem; color: var(--gray); }

/* ---- FAQ ---- */
.faq-wrap {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.faq-item__q {
  padding: 18px 22px;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .15s;
}
.faq-item__q:hover { color: var(--pink); }

.faq-item__icon {
  font-size: 1.3rem;
  color: #d1d5db;
  transition: transform .25s, color .15s;
  flex-shrink: 0;
}

.faq-item.open .faq-item__icon { transform: rotate(45deg); color: var(--pink); }
.faq-item.open { border-color: #fda4af; }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.8;
  padding: 0 22px;
}
.faq-item.open .faq-item__a { max-height: 200px; padding: 0 22px 18px; }

/* ---- CTA финал ---- */
.cta-final {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 80px 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final__blob {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}
.cta-final p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
}
.cta-final__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* Адаптив главной */
@media (max-width: 880px) {
  .hero__inner       { grid-template-columns: 1fr; text-align: center; }
  .hero__btns        { justify-content: center; }
  .hero__chips       { justify-content: center; }
  .main-gen-layout   { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .how-grid     { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}
