* { box-sizing: border-box; }
html, body { width:100%; height:100%; margin:0; padding:0; }
body {
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ---------- ШАПКА ---------- */
header {
  background: #05081a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 6%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 10px rgba(0,0,0,0.5);
  flex-wrap: wrap;
}
.title { font-size: 20px; font-weight: 700; margin-left: 10px; white-space: nowrap; }
.title span { color: #4ef0cf; }
.header-right { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
.contact { color: #ff5050; text-decoration: none; font-weight: 600; }
.contact:hover { text-decoration: underline; }

/* Кнопка Telegram */
.tg-button {
  background: linear-gradient(90deg, #00ffe0, #4ef0cf);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.tg-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(78,240,207,0.7);
  text-decoration: none;
}

/* ---------- HERO ---------- */
main {
  margin-top: 120px;
  padding: 60px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: radial-gradient(circle at center, rgba(0,255,224,0.08), transparent 70%);
  animation: fadeIn 1.5s ease;
}
.text-block { flex: 1 1 45%; text-align: center; min-width: 300px; position: relative; }

h1 {
  color: #4ef0cf;
  font-size: 32px;
  margin-bottom: 15px;
}

h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
}

p  { font-size:18px; line-height:1.6; }
.highlight { color:#4ef0cf; }

.buttons { margin-top: 60px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; position: relative; }
.btn {
  border: 2px solid #00ffe0;
  padding: 10px 25px;
  border-radius: 6px;
  color: #00ffe0;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
}
.btn:hover { background: #00ffe0; color: #000; box-shadow: 0 0 10px rgba(0,255,224,0.7); transform: translateY(-2px); }

.arrow { position: absolute; top: -70px; left: 50%; transform: translateX(-50%); animation: arrowMove 2s infinite alternate ease-in-out; }
.arrow svg { width: 40px; height: 40px; stroke: #00ffe0; stroke-width: 2.5; filter: drop-shadow(0 0 6px #00ffe0); }

.image-block { flex: 1 1 45%; display: flex; justify-content: center; align-items: center; }
.image-block img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 10px;
  animation: fadeIn 2.5s ease;
  filter: drop-shadow(0 0 25px #00ffe0);
}
.delivery-note { text-align: center; margin-top: 20px; font-size: 16px; opacity: 0.8; }

/* ---------- СЕКЦИИ ---------- */
.devices-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 60px 10%;
  gap: 40px;
}
.devices-left { flex: 1 1 45%; }
.devices-left h3 { font-size: 26px; color: #fff; font-weight: 700; margin-bottom: 20px; }

.feature {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px;
  color: #4ef0cf; font-size: 17px; line-height: 1.5; opacity: 0; animation: fadeInUp 1.2s forwards;
}
.feature:nth-child(2){animation-delay:0.3s;}
.feature:nth-child(3){animation-delay:0.6s;}
.feature:nth-child(4){animation-delay:0.9s;}
.feature:nth-child(5){animation-delay:1.2s;}
.feature svg { width: 20px; height: 20px; stroke: #4ef0cf; animation: pulse 2s infinite ease-in-out; }

.devices-right {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}
.device-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 280px; margin: 0 auto;
}
.device-card img { width: 100%; height: 240px; object-fit: contain; border-radius: 10px; margin-bottom: 10px; }

.title-link {
  display: block; color: #fff; font-size: 15px; text-decoration: none; transition: color 0.3s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.title-link:hover { color: #00ffe0; text-shadow: 0 0 8px #00ffe0; }

.device-card .btn {
  margin-top: 8px; font-size: 14px; padding: 8px 20px; border-width: 2px;
  color: #00ffe0; background: transparent;
}
.device-card .btn:hover { background: #00ffe0; color: #000; border-color: #00ffe0; }

.desc { font-size:14px; color:#aaa; margin:6px 0; }

.capsule-badge {
  display:inline-block; background:#4ef0cf; color:#000; font-size:12px; font-weight:600;
  padding:2px 8px; border-radius:4px; margin-bottom:6px;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: #05081a;
  padding: 60px 10%;
  color: #fff;
  text-align: left;
}
.faq-section h3 {
  text-align: center;
  color: #4ef0cf;
  font-size: 26px;
  margin-bottom: 30px;
}
.faq-item {
  margin-bottom: 25px;
  border-left: 3px solid #4ef0cf;
  padding-left: 15px;
}
.faq-item h4 {
  font-size: 18px;
  color: #4ef0cf;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
}
.faq-item a { color: #00ffe0; text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) {
  .devices-right { gap: 28px; }
}
@media (max-width: 768px) {
  header { flex-direction: column; padding: 10px; }
  .title { font-size:17px; text-align:center; margin-left:0; }
  .tg-button, .contact { display:none; }

  main { 
    flex-direction: column; 
    text-align: center; 
    gap: 30px; 
  }
  .text-block { order:2; width:100%; }
  .image-block { order:1; display:flex; justify-content:center; align-items:center; }

  .image-block img {
    max-width: 320px;
    width: 90%;
    height: auto;
    object-fit: contain;
  }

  .devices-section { flex-direction: column; text-align: center; gap: 30px; }
  .devices-left, .devices-right { flex: 1 1 100%; }
  .devices-right { grid-template-columns: 1fr; gap: 24px; }
  .device-card { max-width: 320px; }
  .device-card img { height: 220px; }

  .feature {
    justify-content: flex-start; align-items: flex-start; text-align: left;
    gap: 10px; font-size: 16px; line-height: 1.6;
  }
  .feature svg { margin-top: 4px; width: 18px; height: 18px; }

  .faq-section { padding: 40px 6%; }
  .faq-item h4 { font-size: 17px; }
  .faq-item p { font-size: 15px; }
}

/* ---------- АНИМАЦИИ ---------- */
@keyframes arrowMove { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(12px); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(15px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- ФУТЕР ---------- */
footer {
  background: #05081a;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.4;
  color: #ccc;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  animation: fadeIn 2s ease;
}

/* --- Блок юридического предупреждения --- */
.legal-footer {
  font-size: 12px;
  line-height: 1.5;
  color: #aaa;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #333;
}
.legal-footer p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 4px 0;
}

/* --- ФИКС отображения текста и галочек на мобильных устройствах --- */
.feature {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
.feature svg {
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  .feature {
    opacity: 0;
    animation: fadeInUp 1.2s forwards;
  }
  .feature:nth-child(2){animation-delay:0.3s;}
  .feature:nth-child(3){animation-delay:0.6s;}
  .feature:nth-child(4){animation-delay:0.9s;}
  .feature:nth-child(5){animation-delay:1.2s;}
}
