* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2d5016;
  --secondary-color: #ffd700;
  --accent-color: #1a472a;
  --text-color: #1a1a1a;
  --light-bg: #f5f5f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --success: #27ae60;
  --error: #e74c3c;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  font-size: 32px;
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 215, 0, 0.2);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.3);
}

/* MAIN CONTENT */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

/* HERO SECTION */
.hero {
  text-align: center;
  margin-bottom: 50px;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hero p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

/* ZODIAC BUTTONS */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.zodiac-btn {
  background: var(--white);
  border: 2px solid var(--primary-color);
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.zodiac-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

.zodiac-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.zodiac-btn-name {
  font-size: 14px;
  font-weight: 600;
}

/* HOROSCOPE PAGE */
.horoscope-header {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.horoscope-header h1 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.horoscope-header p {
  color: #666;
  font-size: 16px;
}

.period-selector {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.period-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: var(--white);
  color: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.period-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.period-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.horoscope-text {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.horoscope-text h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.telegram-link {
  display: inline-block;
  background: #0088cc;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.telegram-link:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.3);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--primary-color);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.price-highlight {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* FAQ */
.faq-section {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.faq-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-color);
  padding-left: 20px;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  margin: 0;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 5px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .zodiac-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .period-selector {
    flex-direction: column;
  }

  .period-btn {
    width: 100%;
  }

  .horoscope-header h1 {
    font-size: 24px;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
    padding: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
