/* ===== MAIN STYLES FOR INDEX2 ===== */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2em, 5vw, 3em); }
h2 { font-size: clamp(1.5em, 4vw, 2.5em); }
h3 { font-size: clamp(1.2em, 3vw, 1.8em); }
h4 { font-size: clamp(1em, 2vw, 1.3em); }

p {
  margin: 0 0 1em;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--secondary-color);
}

/* Sections */
section {
  padding: calc(var(--spacing-unit) * 10) 0;
}

.section-light {
  background: var(--bg-light);
}

/* Hero Extended */
.hero-left {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right {
  padding-left: calc(var(--spacing-unit) * 5);
}

.hero-image-wrapper {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%);
  padding: 30px 25px;
  transform: rotateY(-10deg);
  transition: var(--transition-base);
  max-width: 600px;
  width: 100%;
  will-change: transform;
}

.hero-image-wrapper:hover {
  transform: rotateY(-5deg) translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Funding Stats */
.funding-stats {
  margin-bottom: calc(var(--spacing-unit) * 3.75);
}

.main-stats {
  display: flex;
  align-items: baseline;
  gap: calc(var(--spacing-unit) * 5);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.stat-large {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 0.625);
}

.progress-wrapper {
  margin: calc(var(--spacing-unit) * 2.5) 0;
}

.progress-percentage {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 600;
}

.secondary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 2.5);
  padding-top: calc(var(--spacing-unit) * 2.5);
  border-top: 1px solid #ecf0f1;
}

.stat-item {
  text-align: left;
  position: relative;
  padding-left: calc(var(--spacing-unit) * 6.25);
}

.stat-icon {
  position: absolute;
  left: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-value {
  font-size: 1.75em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.stat-desc {
  font-size: 0.95em;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Social Proof */
.social-proof {
  margin-top: calc(var(--spacing-unit) * 4.375);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
}

.backers-avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9em;
  border: 3px solid white;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.avatar.more {
  background: #ecf0f1;
  color: var(--text-secondary);
  font-size: 0.8em;
}

.social-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.social-text strong {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  gap: calc(var(--spacing-unit));
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: #bdc3c7;
}

.btn-success {
  background: var(--success-color);
  color: white;
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.btn-success:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76,175,80,0.4);
}

.btn-large {
  padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 5);
  font-size: 1.15em;
  border-radius: 50px;
}

/* Description Section */
.description {
  padding: calc(var(--spacing-unit) * 10) 0;
  background: var(--bg-light);
}

.description h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6.25);
}

.description-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3.75);
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.description-link:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
  color: white;
}

/* Game Features */
.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 5);
  margin: calc(var(--spacing-unit) * 6.25) 0;
}

.feature {
  background: white;
  padding: calc(var(--spacing-unit) * 6.25) calc(var(--spacing-unit) * 3.75) calc(var(--spacing-unit) * 5);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition-base);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 180px;
  height: 180px;
  margin: 0 auto calc(var(--spacing-unit) * 3.125);
  background: var(--bg-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: var(--transition-base);
}

.feature:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.feature:hover .feature-icon img {
  transform: scale(1.1);
}

.feature h3 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.feature p {
  color: #555;
  line-height: 1.5;
}

/* Rewards Section */
.rewards {
  padding: calc(var(--spacing-unit) * 10) 0;
  background: white;
}

.rewards h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6.25);
}

.reward-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3.75);
  max-width: var(--container-max);
  margin: 0 auto;
}

.reward-tier {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: calc(var(--spacing-unit) * 3.75);
  text-align: center;
  position: relative;
  border: 3px solid transparent;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.reward-tier:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.reward-tier.featured {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: var(--warning-color);
}

.reward-price {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.reward-tier.featured .reward-price {
  color: var(--warning-color);
}

.reward-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.reward-description {
  flex-grow: 1;
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.support-btn {
  background: var(--primary-color);
  color: white;
  border: 0;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3.75);
  border-radius: 25px;
  font-size: 1.1em;
  cursor: pointer;
  margin-top: auto;
  transition: var(--transition-base);
  width: 100%;
}

.support-btn:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Timeline */
.timeline {
  padding: calc(var(--spacing-unit) * 10) 0;
  background: var(--bg-light);
}

.timeline h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6.25);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: stretch;
  margin: calc(var(--spacing-unit) * 5) 0;
  background: white;
  padding: calc(var(--spacing-unit) * 3.75);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  min-height: 150px;
}

.timeline-date {
  background: var(--primary-color);
  color: white;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
  border-radius: 10px;
  font-weight: bold;
  margin-right: calc(var(--spacing-unit) * 3.75);
  min-width: 200px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9em;
  line-height: 1.2;
}

.timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: calc(var(--spacing-unit) * 1.25);
}

.timeline-content h3 {
  margin: 0 0 calc(var(--spacing-unit) * 1.25) 0;
  font-size: 1.3em;
}

.timeline-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Author Section */
.author {
  padding: calc(var(--spacing-unit) * 10) 0;
  background: white;
}

.author h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6.25);
}

.author-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: calc(var(--spacing-unit) * 6.25);
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 7.5);
}

.author-photo,
.author-photo-2,
.author-photo-3 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ddd;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.author-photo {
  background-image: url('/images/author.webp');
  background-position: 52% center;
}

.author-photo-2 {
  background-image: url('/images/kosnikov.webp');
}

.author-photo-3 {
  background-image: url('/images/nastya.webp');
}

.author-info h3 {
  font-size: 1.8em;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.author-info p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: #555;
}

/* CTA Footer */
.cta-hero {
  background: var(--bg-light);
  padding: calc(var(--spacing-unit) * 10) 0;
}

.cta-hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2.5);
}

.cta-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 5);
  align-items: stretch;
}

.cta-hero-left {
  background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 7.5);
  color: white;
}

.cta-content {
  text-align: center;
}

.cta-hero-left h2 {
  color: white;
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.cta-hero-left p {
  font-size: 1.1em;
  margin-bottom: calc(var(--spacing-unit) * 5);
  opacity: 0.95;
  line-height: 1.6;
}

.cta-hero-right {
  border-radius: 20px;
  overflow: hidden;
  background: white;
}

.cta-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-buttons {
  display: flex;
  gap: calc(var(--spacing-unit) * 2.5);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3.75);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
  display: inline-block;
}

.cta-btn.primary {
  background: white;
  color: var(--primary-color);
}

.cta-btn.primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-btn:not(.primary) {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.cta-btn:not(.primary):hover {
  background: rgba(255,255,255,0.3);
  border-color: white;
  transform: translateY(-2px);
}

/* Shipping Section */
.shipping {
  padding: calc(var(--spacing-unit) * 10) 0;
  background: var(--bg-light);
}

.shipping h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6.25);
}

.shipping-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: calc(var(--spacing-unit) * 6.25);
  max-width: 1000px;
  margin: 0 auto;
}

.shipping-content h3 {
  margin: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 1.25);
}

.shipping-list {
  margin: calc(var(--spacing-unit)) 0 calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 2.25);
  line-height: 1.6;
}

.shipping p {
  color: #555;
  line-height: 1.6;
}