:root {
  --bg: #F5F0E8;
  --bg-dark: #E8E0D0;
  --text: #2C2418;
  --text-muted: #6B5D4F;
  --terracotta: #B85C38;
  --gold: #C49B30;
  --green: #5A7247;
  --brown: #6B4226;
  --sand: #D4C4A8;
  --smoke: #8A8278;
  --white: #FDFBF7;
  --card-shadow: 0 2px 20px rgba(44, 36, 24, 0.08);
  --radius: 12px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brown); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(170deg, #3a2d1a 0%, #5c4a2e 40%, #8B7355 70%, #C49B30 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(184, 92, 56, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(196, 155, 48, 0.2) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 2; padding: 40px 20px; }

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.05);
}

.hero h1 { margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184, 92, 56, 0.4);
}
.btn-primary:hover {
  background: #a04f2f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(184, 92, 56, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.6;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== ABOUT ===== */
.about-text {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text);
}

.about-text p { margin-bottom: 1.4rem; }

/* ===== PHOTO GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--smoke);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--sand) 0%, var(--bg-dark) 100%);
}

/* ===== TIMELINE ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold), var(--green));
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--terracotta);
}

.timeline-item:nth-child(even) .timeline-dot { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.timeline-item:nth-child(3n) .timeline-dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }

.timeline-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
}

.timeline-card h3 { margin-bottom: 8px; color: var(--brown); }
.timeline-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

.timeline-day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 20px;
  padding-left: 64px;
}

/* ===== WHY SECTION ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--terracotta);
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-4px); }

.why-card .icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border: 2px solid var(--terracotta); }
.price-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--terracotta);
  color: white;
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.price-card h3 { margin-bottom: 8px; }
.price-card .price { font-size: 2.2rem; font-weight: 700; color: var(--terracotta); margin: 16px 0; }
.price-card .price span { font-size: 1rem; color: var(--text-muted); }
.price-card ul { list-style: none; text-align: left; margin: 20px 0; }
.price-card li { padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; }
.price-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }

.payment-info {
  max-width: 700px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.payment-steps {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.payment-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}

.payment-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}

.discount-list {
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(196,155,48,0.08), rgba(184,92,56,0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(196,155,48,0.2);
}
.discount-list h3 { color: var(--gold); margin-bottom: 12px; }
.discount-list ul { list-style: none; }
.discount-list li { padding: 4px 0; }
.discount-list li::before { content: '🏷 '; }

/* ===== FAQ ===== */
.faq-list { max-width: 750px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: var(--bg); }

.faq-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p { color: var(--text-muted); margin-bottom: 0; }

/* ===== FORM ===== */
.form-section { background: linear-gradient(135deg, var(--bg-dark), var(--bg)); }

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sand);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--terracotta); }

.companion-fields { display: none; margin-top: 16px; padding: 16px; background: var(--bg); border-radius: 8px; }
.companion-fields.visible { display: block; }

.form-submit { text-align: center; margin-top: 24px; }
.form-submit .btn { width: 100%; max-width: 400px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--green); margin-bottom: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h4 { color: var(--white); margin-bottom: 16px; font-family: 'Playfair Display', serif; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== CHAT WIDGET ===== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(184,92,56,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 1000;
  transition: all 0.3s;
}
.chat-fab:hover { transform: scale(1.1); background: #a04f2f; }

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}
.chat-window.open { display: flex; }

.chat-header {
  background: var(--terracotta);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h4 { margin: 0; font-size: 1rem; }

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: var(--bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--terracotta);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--sand);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--sand);
  border-radius: 24px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.chat-input-area input:focus { border-color: var(--terracotta); }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-send:hover { background: #a04f2f; }

.chat-typing {
  display: none;
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--smoke);
}
.chat-typing.visible { display: block; }

/* ===== QUIZ ===== */
.quiz-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.quiz-step h3 { margin-bottom: 8px; }

.quiz-date-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--sand);
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
.quiz-date-input:focus { outline: none; border-color: var(--terracotta); }

.quiz-zodiac-icon { font-size: 3rem; margin-bottom: 8px; }

.quiz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.quiz-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--gold);
}
.quiz-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.quiz-card h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--brown); }
.quiz-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 50px 0; }
  .hero { min-height: 90vh; }
  .pricing-grid { grid-template-columns: 1fr; }
  .payment-steps { flex-direction: column; }
  .form-wrapper { padding: 24px; }
  .chat-window { right: 8px; left: 8px; width: auto; bottom: 90px; height: 70vh; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 48px; }
  .timeline-dot { left: 8px; }
  .timeline-day { padding-left: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-badge { font-size: 0.75rem; padding: 5px 14px; }
}
