* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100%;
}

/* Космический фон — изображение с улучшением качества */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: url('f2h-logo-large.png') center center no-repeat;
  background-size: cover;
  background-color: #0a0b14;
  /* Лёгкое усиление: контраст и насыщенность — картинка выглядит чётче и живее */
  filter: contrast(1.07) saturate(1.2) brightness(0.98);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Виньетка по краям и градиент сверху — фокус на центре, скрывает артефакты по краям */
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, rgba(5, 6, 18, 0.5) 70%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(10, 12, 28, 0.25) 0%, transparent 35%, transparent 70%, rgba(8, 10, 22, 0.4) 100%);
  pointer-events: none;
}

/* Сетка отключена — фон без квадратиков */
.vpn-grid {
  display: none;
}

/* Контент: название выше по центру, кнопки ниже */
.center {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  padding-top: min(8vh, 5rem);
}

/* Название сайта — выше по центру, акцентная типографика */
.site-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: #fff;
  text-shadow:
    0 0 24px rgba(0, 0, 0, 0.95),
    0 0 48px rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 1),
    0 0 40px rgba(100, 160, 255, 0.4),
    0 0 80px rgba(80, 140, 255, 0.2);
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  background: linear-gradient(180deg, #fff 0%, rgba(200, 220, 255, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports (not (background-clip: text)) or (-webkit-background-clip: text) {
  .site-title {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-bottom: min(15vh, 6rem);
  max-width: 56rem;
}

/* Кнопки в стиле liquid glass (iOS) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-align: center;
  width: 22rem;
  min-height: 3.5rem;
  white-space: nowrap;
}

.btn-email {
  gap: 0.55rem;
}

.btn-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(126, 184, 255, 0.55));
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(180, 220, 255, 0.4);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 32px rgba(100, 180, 255, 0.5),
    0 0 48px rgba(80, 150, 255, 0.35),
    0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn:focus {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(120, 180, 255, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Кнопка «Назад» — слева сверху, liquid glass */
.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  display: inline-block;
  padding: 0.65rem 1.25rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  -webkit-font-smoothing: antialiased;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(180, 220, 255, 0.4);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 24px rgba(100, 180, 255, 0.4),
    0 0 36px rgba(80, 150, 255, 0.25);
}

/* Рамка под текстом на странице Услуги — liquid glass */
.content-card {
  max-width: 42rem;
  width: 100%;
  padding: 2rem 2.5rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Внутренние страницы (О нас, FAQ и т.д.) */
.center-page .page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.center-page .page-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.center-page .page-lead {
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 36rem;
}

.services-list li {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
}

.services-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(140, 180, 255, 0.8);
}

.services-list li strong {
  color: #fff;
}

.link-telegram {
  color: #7eb8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 184, 255, 0.5);
  transition: color 0.2s, border-color 0.2s;
}

.link-telegram:hover {
  color: #a8d4ff;
  border-bottom-color: rgba(168, 212, 255, 0.8);
}

/* Мобильные: фон приглушён, текст и кнопки читабельнее */
@media (max-width: 768px) {
  .stars {
    filter: contrast(1.05) saturate(1.1) brightness(0.75);
  }

  .twinkling {
    background:
      radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100%),
      linear-gradient(180deg, rgba(5, 6, 18, 0.5) 0%, transparent 40%, transparent 60%, rgba(5, 6, 18, 0.5) 100%);
  }

  .site-title {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
    letter-spacing: 0.2em;
    text-shadow:
      0 0 16px rgba(0, 0, 0, 1),
      0 0 32px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 1),
      0 0 24px rgba(100, 160, 255, 0.4);
  }

  .btn {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
    max-width: 24rem;
    min-width: 0;
    white-space: normal;
  }

  .center {
    padding-top: min(10vh, 4rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .back-link {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1.1rem;
    font-size: 1rem;
  }
}
