:root {
  --bg-main: #f7faff;
  --bg-alt: #eef4fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f7ff;
  --brand-cyan: #3bc4e8;
  --brand-blue: #1c75bc;
  --brand-lavender: #b8a8d8;
  --brand-gradient: linear-gradient(135deg, #3bc4e8 0%, #1c75bc 65%, #7c69ef 100%);
  --text-main: #18202c;
  --text-muted: #5a677d;
  --border: #dce6f5;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 400;
  color: var(--text-main);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 500;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  font-weight: 300;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 25px rgba(28, 117, 188, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28, 117, 188, 0.32);
  opacity: 0.96;
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-blue);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  box-shadow: 0 6px 16px rgba(59, 196, 232, 0.15);
}

.btn-header {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* Шапка */
header {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.logo span {
  font-weight: 600;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Блок 1: Hero */
.hero {
  padding: 64px 0 84px;
  background: radial-gradient(circle at 80% 30%, rgba(59, 196, 232, 0.14), transparent 45%),
              radial-gradient(circle at 20% 70%, rgba(184, 168, 216, 0.18), transparent 45%),
              var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(59, 196, 232, 0.1);
  color: var(--brand-blue);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 196, 232, 0.28);
}

.hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.micro-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Мокап телефона */
.phone-mockup {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 18px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(28, 117, 188, 0.12);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.05rem;
}

.chat-user-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.chat-user-info span {
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 400;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 400;
  max-width: 86%;
  position: relative;
}

.msg-bot {
  background: #f1f6fc;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--brand-gradient);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-photo {
  background: linear-gradient(135deg, rgba(59, 196, 232, 0.15), rgba(184, 168, 216, 0.2));
  border: 1px solid rgba(59, 196, 232, 0.3);
  border-radius: 12px;
  padding: 22px 12px;
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--brand-blue);
  font-weight: 400;
}

.msg-bot .msg-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.msg-user .msg-time {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
  margin-top: 4px;
}

/* Блок 2 Форма создания персонажа (в стиле Woki Mini App) */
.woki-form {
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(28, 117, 188, 0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand-blue);
  background-color: #ffffff;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a677d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 12px;
}

.btn-random {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-random:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-chip {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
}

.interest-chip:hover {
  border-color: var(--brand-cyan);
}

.interest-chip.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(28, 117, 188, 0.22);
}

.btn-submit-full {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  font-size: 1.05rem;
}

@media (max-width: 520px) {
  .woki-form {
    padding: 20px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* Блок 3: Преимущества */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(28, 117, 188, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(28, 117, 188, 0.1);
}

.card-icon {
  font-size: 1.65rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 196, 232, 0.14), rgba(184, 168, 216, 0.2));
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Блок 4: Сравнение */
.compare-table {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(28, 117, 188, 0.06);
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.compare-table th {
  background: #f4f8fe;
  font-size: 1.05rem;
  font-weight: 500;
}

.compare-table th:last-child {
  color: var(--brand-blue);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  color: var(--text-muted);
}

.compare-table td:last-child {
  font-weight: 400;
}

/* Блок 5: Отзывы */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.review-author {
  margin-top: 16px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brand-blue);
}

/* Блок 6: FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 117, 188, 0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brand-blue);
  transition: transform 0.2s ease;
}

/* Блок 7: CTA и Футер */
.cta-box {
  background: linear-gradient(135deg, rgba(59, 196, 232, 0.12), rgba(184, 168, 216, 0.22)), #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(28, 117, 188, 0.08);
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
  font-weight: 300;
}

footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-info {
  max-width: 680px;
}

.footer-requisites {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 400;
}

.age-badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
}

/* Адаптив */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  section {
    padding: 48px 0;
  }

  .builder-box {
    padding: 20px;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 12px;
    font-size: 0.9rem;
  }
}
