/* style.css */
:root {
  --deep-space: #0b0c1e;
  --star-glow: #a29bfe;
  --nebula: #6c5ce7;
  --accent: #00cec9;
  --accent2: #fd79a8;
  --gold: #fdcb6e;
  --text-light: #f5f6fa;
  --glass-bg: rgba(10, 15, 30, 0.6);
  --border-glow: 0 0 15px rgba(0, 206, 201, 0.5);
  --font-orbit: 'Orbitron', sans-serif;
  --font-exo: 'Exo 2', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-exo);
  background: var(--deep-space);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ----- PRELOADER (исправленная ракета) ----- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #0f1128, #030514);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
  backdrop-filter: blur(5px);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__content {
  text-align: center;
  width: 90%;
  max-width: 500px;
  z-index: 10;
  position: relative;
  word-break: break-word;
}
.rocket-container {
  position: relative;
  display: inline-block;
  font-size: 5rem;
  color: #ffeaa7;
  filter: drop-shadow(0 0 20px #f39c12);
  /* Ракета строго вертикально, анимация вверх-вниз */
  animation: rocketLaunchVertical 2.5s infinite ease-in-out;
  margin-bottom: 20px;
}
.rocket-container .fa-rocket {
  transform: rotate(-45deg); /* гарантируем отсутствие наклона */
  display: block;
}
@keyframes rocketLaunchVertical {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0px); }
}
.rocket-flame {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 40px;
  background: linear-gradient(to bottom, #ff9f43, #ff6b6b, #ee5a24);
  border-radius: 50% 50% 20% 20%;
  filter: blur(8px);
  animation: flicker 0.15s infinite alternate, flamePulse 1s infinite;
}
@keyframes flicker {
  0% { opacity: 0.8; height: 35px; }
  100% { opacity: 1; height: 45px; }
}
@keyframes flamePulse {
  0% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(1.2); }
  100% { transform: translateX(-50%) scaleY(1); }
}
.stars-trail {
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, #fdcb6e, transparent);
  width: 80%;
  margin: 10px auto;
  filter: blur(2px);
  animation: trailPulse 1.5s infinite;
}
@keyframes trailPulse {
  0% { opacity: 0.3; width: 60%; }
  50% { opacity: 1; width: 90%; }
  100% { opacity: 0.3; width: 60%; }
}
.progress-wrapper {
  margin-top: 30px;
  width: 100%;
}
.progress-text {
  font-family: var(--font-orbit);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  margin-bottom: 8px;
}
.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 8px #000;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #81ecec);
  border-radius: 20px;
  box-shadow: 0 0 12px #00cec9;
  transition: width 0.1s linear;
}
.preloader-motto {
  margin-top: 25px;
  font-family: var(--font-orbit);
  letter-spacing: 6px;
  font-weight: 600;
  color: #b2bec3;
}

/* Адаптивность прелоудера для iPhone 12 (390px) */
@media (max-width: 480px) {
  .rocket-container {
    font-size: 3.5rem;
  }
  .progress-text {
    font-size: 1.4rem;
  }
  .preloader-motto {
    letter-spacing: 3px;
    font-size: 0.8rem;
  }
}

/* ----- SITE BACKGROUND (Stars animation) ----- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
}

/* Планеты с детализацией */
.planet {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Планета 1 - газовый гигант с кольцами */
.planet-1 {
  width: 350px;
  height: 350px;
  top: 10%;
  right: -150px;
  animation: slowOrbit 40s infinite linear;
  background: none;
  filter: none;
  opacity: 1;
}

.planet-1::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, 
    #c8d6e5 0%, 
    #8395a7 30%, 
    #576574 50%, 
    #222f3e 70%, 
    #1e272e 100%);
  box-shadow: 
    inset -20px -20px 40px rgba(0,0,0,0.6),
    inset 20px 20px 40px rgba(255,255,255,0.2),
    0 0 60px rgba(131, 149, 167, 0.3);
}

/* Кольца Сатурна */
.planet-1::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 40px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(200, 214, 229, 0.2) 10%,
    rgba(200, 214, 229, 0.6) 30%,
    rgba(200, 214, 229, 0.8) 50%,
    rgba(200, 214, 229, 0.6) 70%,
    rgba(200, 214, 229, 0.2) 90%,
    transparent);
  border-radius: 50%;
  top: 45%;
  left: -40%;
  transform: rotate(-20deg);
  filter: blur(2px);
  box-shadow: 0 0 30px rgba(200, 214, 229, 0.4);
}

/* Полосы Юпитера */
.planet-1 .jupiter-bands {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.3;
}

.planet-1 .jupiter-bands div {
  position: absolute;
  width: 100%;
  height: 15px;
  background: rgba(139, 90, 43, 0.5);
  top: 20%;
}

/* Планета 2 - каменистая с кратерами */
.planet-2 {
  width: 200px;
  height: 200px;
  bottom: 5%;
  left: -80px;
  animation: slowOrbitReverse 55s infinite linear;
  background: none;
  filter: none;
  opacity: 1;
}

.planet-2::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, 
    #e17055 0%, 
    #d63031 40%, 
    #b33939 70%, 
    #6c5ce7 100%);
  box-shadow: 
    inset -15px -15px 30px rgba(0,0,0,0.7),
    inset 15px 15px 30px rgba(255,255,255,0.15),
    0 0 50px rgba(214, 48, 49, 0.4);
}

/* Кратеры */
.planet-2::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 30%, #2d3436, #1e272e);
  border-radius: 50%;
  top: 30%;
  left: 25%;
  box-shadow: 
    40px 20px 0 -8px #2d3436,
    -20px 50px 0 -5px #2d3436,
    50px 70px 0 -10px #2d3436,
    -30px -20px 0 -6px #2d3436,
    70px -10px 0 -4px #2d3436;
  opacity: 0.7;
}

/* Планета 3 - ледяная */
.planet-3 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: -200px;
  opacity: 0.2;
  animation: slowOrbit 70s infinite linear;
  background: none;
  filter: none;
}

.planet-3::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, 
    #81ecec 0%, 
    #00cec9 30%, 
    #0984e3 60%, 
    #2d3436 100%);
  box-shadow: 
    inset -25px -25px 50px rgba(0,0,0,0.5),
    inset 25px 25px 50px rgba(255,255,255,0.3),
    0 0 80px rgba(0, 206, 201, 0.3);
}

/* Ледяные трещины */
.planet-3::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.1) 20px,
    rgba(255, 255, 255, 0.1) 22px
  );
  opacity: 0.5;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .planet-1 {
    width: 250px;
    height: 250px;
    right: -120px;
  }
  
  .planet-1::after {
    width: 160%;
    height: 30px;
  }
  
  .planet-2 {
    width: 150px;
    height: 150px;
    left: -60px;
  }
  
  .planet-3 {
    width: 300px;
    height: 300px;
    left: -150px;
  }
}

@keyframes slowOrbit {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}
@keyframes slowOrbitReverse {
  0% { transform: rotate(0deg) translateX(-20px) rotate(0deg); }
  100% { transform: rotate(-360deg) translateX(-20px) rotate(360deg); }
}

/* ----- MAIN LAYOUT ----- */
.site-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  backdrop-filter: blur(2px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.hero__badge {
  font-family: var(--font-orbit);
  font-size: 1.2rem;
  letter-spacing: 5px;
  background: rgba(0,0,0,0.3);
  padding: 8px 24px;
  border-radius: 40px;
  border: 1px solid var(--accent);
  backdrop-filter: blur(5px);
  margin-bottom: 20px;
}
.hero__presented {
  font-size: 1rem;
  letter-spacing: 8px;
  color: var(--gold);
}
.hero__title {
  font-family: var(--font-orbit);
  font-size: clamp(2.8rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0;
  text-shadow: 0 0 30px #6c5ce7;
}
.glitch {
  position: relative;
  color: #fff;
}
.hero__title-galaxy {
  background: linear-gradient(135deg, #ffeaa7, #fd79a8, #a29bfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: #dfe6e9;
}
.hero__message-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.1rem;
  box-shadow: var(--border-glow);
}
.hero__message-box i {
  margin-right: 10px;
  color: var(--accent);
}

/* Countdown */
.countdown-container {
  margin: 40px 0 30px;
}
.countdown-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--accent);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px 40px;
  flex-wrap: wrap;
}
.countdown-item {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 20px 25px;
  border-radius: 30px;
  border: 1px solid var(--accent2);
  min-width: 120px;
  box-shadow: 0 0 25px rgba(253, 121, 168, 0.3);
}
.countdown-item span:first-child {
  font-family: var(--font-orbit);
  font-size: 3.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  color: #fff;
}
.countdown-item .label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.countdown-message {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 20px;
  background: linear-gradient(135deg, #fdcb6e, #e84393);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CTA */
.hero__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-orbit);
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  backdrop-filter: blur(5px);
}
.btn-primary {
  background: var(--accent);
  color: #0b0c1e;
  box-shadow: 0 0 20px #00cec9;
}
.btn-primary:hover {
  background: #00b894;
  transform: scale(1.05);
  box-shadow: 0 0 30px #55efc4;
}
.btn-outline {
  border: 2px solid var(--accent2);
  color: var(--text-light);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent2);
  color: #0b0c1e;
}

/* Details section */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: var(--font-orbit);
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.section-sub {
  color: #b2bec3;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.detail-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
}
.detail-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.detail-card i {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.pricing-wrapper {
  background: rgba(20, 25, 45, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 30px;
  margin-top: 20px;
}
.pricing-table {
  max-width: 500px;
  margin: 20px auto;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px dashed #4a5568;
  font-size: 1.2rem;
}
.price-row.highlight {
  background: rgba(253, 203, 110, 0.2);
  border-radius: 20px;
  font-weight: bold;
  color: var(--gold);
}
.price-row.highlightwarn {
  background: rgba(255, 0, 0, 0.2);
  border-radius: 20px;
  font-weight: bold;
  color: var(--gold);
}

.peer-price {
  opacity: 0.9;
}
.price-note {
  text-align: right;
  font-size: 0.9rem;
  color: #a0aec0;
}

/* Gallery */
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slider {
  overflow: hidden;
  width: 85%;
  border-radius: 30px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}
.gallery-slide {
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
}
.gallery-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: 0.2s;
  z-index: 5;
}
.gallery-btn:hover {
  background: var(--accent);
  color: #0b0c1e;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.dot {
  width: 12px;
  height: 12px;
  background: #636e72;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent);
}

/* Community */
.community-card {
  background: linear-gradient(145deg, #1e1e3f, #0f0f23);
  border-radius: 60px;
  padding: 50px 30px;
  text-align: center;
  border: 1px solid var(--accent2);
  margin: 60px 0;
}
.btn-community {
  background: #2d98da;
  color: white;
  margin-top: 25px;
}

.footer {
  margin-top: 60px;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #2d3436;
}
.footer__motto {
  font-family: var(--font-orbit);
  font-size: 1.8rem;
  margin: 15px 0;
}
.footer__links a {
  color: #dfe6e9;
  margin: 0 15px;
  font-size: 1.2rem;
}

/* ---------- АДАПТИВНОСТЬ (основной контент, включая iPhone 12 390px) ---------- */
@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 4.5rem);
  }
  .countdown-item {
    min-width: 100px;
    padding: 15px 18px;
  }
  .countdown-item span:first-child {
    font-size: 2.8rem;
  }
  .gallery-slide {
    height: 320px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .site-wrapper {
      overflow-x: hidden;
  }
}

@media (max-width: 600px) {
  .site-wrapper {
    padding: 10px 16px;
  }
  .hero__badge {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }
  .hero__presented {
    font-size: 0.8rem;
    letter-spacing: 5px;
  }
  .hero__message-box {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .countdown {
    gap: 10px;
  }
  .countdown-item {
    min-width: 70px;
    padding: 12px 8px;
    border-radius: 20px;
  }
  .countdown-item span:first-child {
    font-size: 2rem;
  }
  .countdown-item .label {
    font-size: 0.75rem;
  }
  .countdown-message {
    font-size: 1.5rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .details-grid {
    gap: 20px;
  }
  .detail-card {
    padding: 20px 15px;
  }
  .pricing-wrapper {
    padding: 20px 15px;
  }
  .price-row {
    font-size: 1rem;
    padding: 8px 10px;
  }
  .gallery-slide {
    height: 220px;
  }
  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .community-card {
    padding: 30px 20px;
  }
  .footer__motto {
    font-size: 1.4rem;
  }
}

/* Точная подгонка под iPhone 12 (ширина 390px) */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__subtitle {
    font-size: 1.2rem;
  }
  .countdown-item {
    min-width: 60px;
    padding: 10px 5px;
  }
  .countdown-item span:first-child {
    font-size: 1.8rem;
  }
  .countdown-item .label {
    font-size: 0.65rem;
  }
  .hero__cta .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .pricing-table .price-row {
    font-size: 0.9rem;
  }
  .gallery-slide {
    height: 180px;
  }
  .gallery-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  .detail-card i {
    font-size: 2.2rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .community-card h3 {
    font-size: 1.3rem;
  }
  .community-card p {
    font-size: 0.9rem;
  }
  .footer__motto {
    font-size: 1.2rem;
  }
}

/* Для очень маленьких экранов (<=360px) */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.8rem;
  }
  .countdown-item {
    min-width: 55px;
    padding: 8px 2px;
  }
  .countdown-item span:first-child {
    font-size: 1.5rem;
  }
}

/* Разделитель между таблицами */
.price-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0 15px;
  position: relative;
}

.price-divider::before,
.price-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.price-divider span {
  font-size: 1.8rem;
  margin: 0 15px;
  filter: drop-shadow(0 0 8px var(--gold));
}

/* Заголовок для пиров */
.peer-title {
  font-family: var(--font-orbit);
  font-size: 1.4rem;
  text-align: center;
  margin: 10px 0 20px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Стили для строк пиров */
.peer-table {
  border: 1px solid rgba(253, 203, 110, 0.3);
  border-radius: 20px;
  padding: 5px;
  background: rgba(253, 203, 110, 0.05);
}

.peer-row {
  border-bottom-color: rgba(253, 203, 110, 0.2) !important;
}

/* Адаптивность */
@media (max-width: 600px) {
  .price-divider span {
    font-size: 1.4rem;
  }
  
  .peer-title {
    font-size: 1.2rem;
  }
}
