:root {
  --tg-blue: #0088cc;
  --tg-green: #00a884;
  --neon-green: #00ffcc;
  --dark-bg: #0a0f1d;
  --darker-bg: #060a14;
  --card-bg: rgba(18, 28, 42, 0.7);
  --text-light: #e6f0ff;
  --text-gray: #8aa0c0;
  --border-color: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--darker-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Фон только для шапки (header + hero) === */
.hero-wrapper {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('header-bg.jpg') center/cover no-repeat;
  z-index: -1;
  filter: brightness(0.69) contrast(1.05) saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 22, 0.4) 0%,
    rgba(6, 12, 22, 0.7) 100%
  );
  z-index: -1;
}

/* Header */
.header {
  padding: 24px 0;
  backdrop-filter: blur(10px);
  background: rgba(6, 12, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--tg-blue), var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  color: var(--text-gray);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--neon-green);
}

.brand-link {
  color: var(--neon-green) !important;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.0rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff, var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 32px;
}


.hero .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px auto 20px;
  color: var(--neon-green);
  max-width: 650px;
}

.hero .hero-text {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 170, 132, 0.15);
  border: 1px solid var(--tg-green);
  color: var(--neon-green);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn:hover {
  background: rgba(0, 170, 132, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 170, 132, 0.2);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--neon-green), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Sections */
.section {
  padding: 80px 0;
  background: var(--darker-bg);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #ffffff, var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 170, 132, 0.4);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  /* Убираем градиент — эмодзи будут в системных цветах */
  color: inherit; /* или просто удалить строку — по умолчанию inherit */
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: white;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Why Us with Image */
.why-us-section {
  background: rgba(12, 20, 32, 0.6);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.why-us-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
}

.why-us-text p {
  margin-bottom: 16px;
}

.capybara-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--neon-green);
  font-weight: 600;
  text-decoration: none;
}

.capybara-link:hover {
  text-decoration: underline;
}

.why-us-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 255, 204, 0.2);
}

/* Proxies */
.proxies-section {
  background: rgba(6, 12, 22, 0.6);
}

.proxy-list {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.proxy-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}


/* Инструкция по использованию прокси */
.proxy-guide {
  margin-top: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.guide-step {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.step-icon {
  font-size: 1.6rem;
  line-height: 1;
  min-width: 28px;
}

.step-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-text strong {
  color: var(--neon-green);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.guide-link {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 600;
}

.guide-link:hover {
  text-decoration: underline;
}

/* Важное уведомление в секции прокси */
.proxy-notice {
  display: flex;
  gap: 16px;
  background: rgba(30, 25, 0, 0.4);
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 30px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.notice-content {
  color: #ffd780;
  font-size: 0.95rem;
  line-height: 1.6;
}

.notice-content strong {
  color: var(--neon-green);
  display: block;
  margin-bottom: 6px;
}

.proxy-card.online:hover {
  border-color: var(--tg-green);
  background: rgba(0, 170, 132, 0.05);
}

.proxy-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proxy-location {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.proxy-address {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.proxy-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-gray);
}

.proxy-status .online {
  color: var(--neon-green);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d93025;
}

.status-dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}


/* Стиль для сервера "Скоро" */
.proxy-card.coming-soon {
  opacity: 0.7;
  border-color: rgba(136, 136, 136, 0.3);
}

.status-dot.soon {
  background: #aaa;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* Без пульсации */
}

.proxy-card.coming-soon .proxy-status {
  color: #aaa;
}

.proxy-card.coming-soon .action-btn {
  background: rgba(100, 100, 100, 0.15);
  border-color: #555;
  color: #aaa;
  cursor: not-allowed;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

.action-btn {
  background: rgba(0, 170, 132, 0.15);
  border: 1px solid var(--tg-green);
  color: var(--neon-green);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.action-btn:hover:not(:disabled) {
  background: rgba(0, 170, 132, 0.3);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.how-to {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-gray);
  text-align: center;
}

.how-to .green-link {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 600;
}

.how-to .green-link:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  background: var(--card-bg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--card-bg);
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  padding: 18px 24px;
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  background: var(--darker-bg);
}

.footer a {
  color: var(--neon-green);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
  }

  .proxy-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    display: none;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-us-text {
    order: 2;
  }

  .why-us-image {
    order: 1;
  }

  .why-us-image img {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-wrapper {
    min-height: 600px;
  }
}