* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #0c1027 0%, #1a1f4b 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.2"/><circle cx="30" cy="25" r="0.3" fill="white" opacity="0.2"/><circle cx="70" cy="15" r="0.4" fill="white" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.2"/><circle cx="20" cy="70" r="0.6" fill="white" opacity="0.2"/><circle cx="50" cy="90" r="0.3" fill="white" opacity="0.2"/><circle cx="85" cy="80" r="0.4" fill="white" opacity="0.2"/></svg>');
  background-size: 200px 200px;
  z-index: -1;
  animation: stars-move 200s linear infinite;
}

@keyframes stars-move {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.space-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.object {
  position: absolute;
  will-change: transform;
}

@keyframes rocket-movement {
  0% { transform: translate(-50px, 0) rotate(0); }
  25% { transform: translate(200px, -100px) rotate(5deg); }
  50% { transform: translate(600px, -200px) rotate(0); }
  75% { transform: translate(900px, -400px) rotate(-5deg); }
  100% { transform: translate(1200px, -600px) rotate(0); }
}

.object_rocket {
  width: 40px;
  position: absolute;
  top: 75%;
  left: -50px;
  animation: rocket-movement 100s linear infinite;
  z-index: 95;
  filter: drop-shadow(0 0 5px rgba(255, 203, 57, 0.7));
}

@keyframes spin-earth {
  100% { transform: rotate(360deg); }
}

.object_earth {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 10%;
  animation: spin-earth 180s infinite linear;
  filter: drop-shadow(0 0 10px rgba(66, 133, 244, 0.5));
}

@keyframes move-astronaut {
  0% { transform: translateY(0) translateX(0) scale(0.8); }
  50% { transform: translateY(-150px) translateX(-50px) scale(0.8); }
  100% { transform: translateY(0) translateX(0) scale(0.8); }
}

@keyframes rotate-astronaut {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.box_astronaut {
  position: absolute;
  top: 55%;
  right: 15%;
  animation: move-astronaut 40s infinite linear alternate;
}

.object_astronaut {
  width: 100px;
  height: 100px;
  animation: rotate-astronaut 25s infinite linear;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.glowing_stars {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  width: 2px;
  height: 2px;
  opacity: 0.3;
  animation: glow-star 3s infinite ease-in-out alternate;
}

@keyframes glow-star {
  40% { opacity: 0.3; }
  90%, 100% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 5px #fff; }
}

.star:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 1s;
}

.star:nth-child(2) {
  top: 85%;
  left: 30%;
  animation-delay: 2s;
}

.star:nth-child(3) {
  top: 30%;
  left: 80%;
  animation-delay: 3.5s;
}

.star:nth-child(4) {
  top: 50%;
  left: 50%;
  animation-delay: 0.5s;
}

.star:nth-child(5) {
  top: 60%;
  left: 90%;
  animation-delay: 2.5s;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

header {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 203, 57, 0.3);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Dosis', sans-serif;
  font-size: 1.8rem;
  color: #FFCB39;
  text-decoration: none;
  font-weight: 700;
}

.logo i {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFCB39;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 8px 15px;
  width: 250px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 203, 57, 0.3);
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  padding: 0 10px;
  outline: none;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box button {
  background: transparent;
  border: none;
  color: #FFCB39;
  cursor: pointer;
  font-size: 1.2rem;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: 'Dosis', sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin: 2rem 0;
  color: #FFCB39;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #2196f3, 0 0 20px #2196f3; }
  to { text-shadow: 0 0 15px #ff4081, 0 0 30px #ff4081; }
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 3rem 0 1.5rem;
  border-bottom: 2px solid rgba(255, 203, 57, 0.4);
  padding-bottom: 0.5rem;
  color: #fff;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin: 2rem 0 1rem;
  color: #fff;
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 80ch;
}

a {
  color: #FFCB39;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: white;
  text-decoration: underline;
}

/* Блок с iFrame */
.iframe-section {
  position: sticky;
  top: 90px;
  height: 90vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(255, 203, 57, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  margin: 2rem auto;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#ad-top, #ad-bottom {
  position: absolute;
  width: 100%;
  height: 60px;
  background: linear-gradient(to right, #1a237e, #311b92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: #FFCB39;
  font-weight: bold;
  font-family: 'Dosis', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#ad-top {
  top: 0;
  border-radius: 10px 10px 0 0;
}

#ad-bottom {
  bottom: 0;
  border-radius: 0 0 10px 10px;
}

#iframe-content {
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 120px);
  border: none;
  border-radius: 10px;
}

.iframe-placeholder {
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.iframe-placeholder-icon {
  font-size: 5rem;
  color: #FFCB39;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.iframe-placeholder-text {
  font-size: 1.5rem;
  color: #ccc;
  max-width: 600px;
}

.btn-fullscreen {
  display: block;
  width: fit-content;
  margin: 1.5rem auto;
  padding: 0.8rem 2rem;
  font-size: clamp(14px, 1.8vw, 16px);
  background: transparent;
  border: 2px solid #FFCB39;
  border-radius: 30px;
  color: #FFCB39;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #FFCB39;
  transition: width 0.5s ease;
  z-index: -1;
}

.btn-fullscreen:hover::before {
  width: 100%;
}

.btn-fullscreen:hover {
  background: #FFCB39;
  color: black;
  transform: scale(1.05);
}

/* Список мануалов */
.manuals-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.manual-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 203, 57, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.manual-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #FFCB39, #ff4081);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.manual-item:hover::before {
  transform: scaleX(1);
}

.manual-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 203, 57, 0.2);
  border-color: #FFCB39;
}

.manual-link {
  padding: 1.2rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Заголовок */
.manual-link h3 {
  font-family: 'Dosis', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #FFCB39;
  margin: 0 0 0.6rem 0; /* небольшой отступ снизу */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Иконка в заголовке */
.manual-link h3 i {
  font-size: 1.5rem;
}

/* Описание */
.manual-link p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
  text-align: justify; /* выравнивание по ширине */
}

/* Бейдж */
.manual-badge {
  background: rgba(255, 203, 57, 0.2);
  color: #FFCB39;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
}


/* FAQ - Вопросы и ответы */
.faq-section {
  margin-top: 4rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 203, 57, 0.4);
  backdrop-filter: blur(5px);
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 203, 57, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #FFCB39;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Dosis', sans-serif;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 203, 57, 0.1);
}

.faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: #FFCB39;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: #ccc;
  font-size: 1rem;
}

/* Кнопка "Наверх" */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #FFCB39;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  box-shadow: 0 0 15px rgba(255, 203, 57, 0.5);
}

#scrollTopBtn:hover {
  transform: translateY(0) scale(1.1);
  background: #ffd86e;
}

#scrollTopBtn.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Футер */
footer {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid rgba(255, 203, 57, 0.3);
  backdrop-filter: blur(5px);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-column h4 {
  color: #FFCB39;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFCB39;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFCB39;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #FFCB39;
  color: black;
  transform: translateY(-3px);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 992px) {
  .iframe-section {
    position: static;
    height: 80vh;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .search-box {
    width: 200px;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
  
  .iframe-section {
    height: 75vh;
    min-height: 450px;
  }
  
  .manuals-list {
    grid-template-columns: 1fr;
  }
  
  .box_astronaut {
    transform: scale(0.7);
    right: 5%;
  }
  
  .object_earth {
    left: 5%;
  }
  
  #ad-top, #ad-bottom {
    height: 50px;
    font-size: 1rem;
  }
  
  #iframe-content, .iframe-placeholder {
    top: 50px;
    bottom: 50px;
    height: calc(100% - 100px);
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .search-box {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }
  
  .hamburger {
    display: block;
  }
}

@media (max-width: 480px) {
  .iframe-section {
    height: 70vh;
    min-height: 400px;
  }
  
  .box_astronaut, .object_earth, .object_rocket {
    display: none;
  }
  
  #ad-top, #ad-bottom {
    height: 40px;
    font-size: 0.9rem;
  }
  
  #iframe-content, .iframe-placeholder {
    top: 40px;
    bottom: 40px;
    height: calc(100% - 80px);
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .iframe-placeholder-text {
    font-size: 1.2rem;
  }
}

/* Анимации */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.float-element {
  animation: float 6s ease-in-out infinite;
}

/* Progress bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 5px;
  background: linear-gradient(to right, #FFCB39, #ff4081);
  width: 0%;
  transition: width 0.2s ease-out;
}