/* Скрываем кнопку до загрузки JS */
.navbar-btn.js-loading {
  opacity: 0;
  pointer-events: none;
}

/* Показываем, когда JS отработал */
.navbar-btn:not(.js-loading) {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.05s ease;
}
/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА KONEXY PERSONAL ===== */
@font-face {
  font-family: 'Konexy Personal';
  src: url('/fonts/KonexyPersonalUse.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== ПРИМЕНЕНИЕ ШРИФТА ===== */

/* ТОЛЬКО для логотипа SkySafe в навбаре */
.navbar-logo {
  font-family: 'Konexy Personal', sans-serif !important;
}

/* ТОЛЬКО для заголовка H1 */
.main-title {
  font-family: 'Konexy Personal', sans-serif;
  /* Оставляем остальные стили как были */
}

/* ПОДЗАГОЛОВОК - ОСТАВЛЯЕМ КАК БЫЛО */
.main-subtitle {
  /* Убираем Konexy Personal, оставляем стандартный шрифт */
  font-family: inherit; /* или можно явно указать другой шрифт */
  /* или вообще ничего не менять - будет использовать шрифт по умолчанию */
}

/* --- Сброс и базовые стили --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --vh: 1vh;
}

html {
  overflow-y: scroll; /* всегда показываем скролл, но только один */
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

body {
  overflow: visible; /* убираем overflow у body */
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
}

/* Убираем возможный скролл у всех элементов */
*::-webkit-scrollbar {
  width: 8px; /* делаем скролл тонким, но он будет только один */
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Разрешаем выделение и копирование текста на всей странице */
* {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  caret-color: transparent !important; /* Убираем мигающую палочку */
}

/* Запрещаем изменение курсора при наведении на текст */
body, p, span, div, h1, h2, h3, h4, h5, h6, label, li {
  cursor: default !important;
}

/* Для ссылок - pointer */
a {
  cursor: pointer !important;
}

/* Разрешаем копирование только в специальных элементах */
.copy-btn, 
.vpn-key, 
.key-code, 
.key-item-compact .key-code,
[onclick*="copyText"],
[onclick*="copyKey"] {
  cursor: pointer !important;
}

/* Для кнопок копирования сохраняем pointer */
.copy-btn, 
.btn-copy,
[onclick*="copyText"],
[onclick*="copyKey"] {
  cursor: pointer !important;
}

/* Для интерактивных элементов сохраняем pointer */
button, 
a, 
[role="button"],
.clickable,
.action-card,
.key-card,
.key-item-compact {
  cursor: pointer !important;
}

/* Внутри кликабельных элементов (ссылки, кнопки, пункты меню) —
   потомки тоже должны показывать «палец», иначе span перебивает курсор */
a *,
button *,
[role="button"] *,
.nav-menu a span,
.nav-menu button span,
.nav-menu .nav-ico,
.nav-dropdown a span,
.nav-dropdown button span,
.link-action span,
.hero-btn span,
.nav-cta span {
  cursor: pointer !important;
}

/* Для полей ввода - возвращаем нормальный курсор и каретку.
   Ползунки (range) исключены — им каретка не нужна. */
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
textarea,
[contenteditable="true"] {
  cursor: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  caret-color: auto !important; /* Возвращаем каретку для полей ввода */
}

/* --- Интерактивные элементы, которым нужен «палец» --- */

/* Чекбоксы, радио и ползунки — не текстовые поля: курсор «рука» */
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="color"],
input[type="file"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Ползунок: перетаскивание не должно выделять текст и рисовать каретку */
input[type="range"] {
  cursor: grab !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  caret-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

input[type="range"]:focus,
input[type="range"]:focus-visible {
  caret-color: transparent !important;
}

input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb {
  -webkit-user-select: none !important;
  user-select: none !important;
}

input[type="range"]:active {
  cursor: grabbing !important;
}

/* Кликабельные карточки: палец на всей площади, включая вложенные span/div */
.action-card,
.action-card *,
[role="button"] *,
.clickable,
.clickable *,
label[for],
label[for] *,
label.cursor-pointer,
label.cursor-pointer * {
  cursor: pointer !important;
}

/* Переключатель в админке (права администратора) */
.um-toggle,
.um-toggle *,
.admin-user-item,
.admin-user-item *,
.um-row-click,
.um-row-click *,
.um-section h4 span,
.tariff-switch-btn,
.tariff-switch-btn *,
.mobile-cell,
.mobile-cell *,
.period-btn,
.period-btn * {
  cursor: pointer !important;
}

/* Сам ползунок устройств (полоса) */
.device-slider {
  cursor: grab !important;
}

.device-slider:active {
  cursor: grabbing !important;
}

/* ======================================== */
/* ФИКСИРОВАННАЯ ВЕРХНЯЯ ШТОРКА (NAVBAR) */
/* ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
}

.navbar.navbar-scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

/* Логотип - СТРОГИЙ ШРИФТ С ГРАДИЕНТОМ */
.navbar-logo {
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', 'Arial Black', Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.navbar-logo:hover {
  opacity: 0.8;
}

/* Кнопка */
.navbar-actions {
  display: flex;
  align-items: center;
}

.navbar-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ======================================== */
/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ (НАВБАР) */
/* ======================================== */

@media (max-width: 767px) {
  .navbar {
    height: 56px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2);
  }

  .navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.35);
  }

  .navbar-logo {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
  }

  .navbar-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 50px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.15);
  }

  .navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.3);
  }

  .navbar-logo {
    font-size: 1rem;
    letter-spacing: -0.2px;
  }

  .navbar-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
  }
}

/* Контент занимает всё пространство */
main {
  flex: 1;
}

/* --- ФОН --- */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: -2;
}

.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
}

.bg-low-quality {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('/assets/header-bg-small.jpg');
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.bg-high-quality {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('/assets/header-bg-full.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* --- КОНТЕНТ --- */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
}

@media (max-width: 767px) {
  .content-wrapper {
    padding-top: 56px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding-top: 50px;
  }
}

/* --- Хедер --- */
header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 60px 20px 10px;
  text-align: center;
  width: 100%;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

header h1 {
  font-size: clamp(2.2em, 5vw, 4em);
  margin: 0;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

header p {
  font-size: 14px;
  margin-top: 15px;
  opacity: 0.95;
  max-width: 90%;
}

/* --- Кнопочные блоки --- */
.buttons-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.button-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* АНИМАЦИЯ ТОЛЬКО ДЛЯ ДЕСКТОПА */
  transform: translateY(-50px);
  opacity: 0;
  animation: slideDown 2.5s ease forwards;
}

.button-desc {
  font-size: 0.95em;
  color: #eee;
  margin-top: 15px;
  max-width: 100%;
  line-height: 1.5;
}

/* --- Кнопки --- */
.cta-button, .proxy-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 16px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  width: 100%;
  max-width: 320px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* ===== КНОПКА "НА САЙТЕ" ===== */
.cta-button {
  background: linear-gradient(135deg, #FF9000, #e67e00);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 144, 0, 0.25);
  transition: all 0.3s ease;
  border: none;
}

.cta-button:hover {
  background: linear-gradient(135deg, #ffa133, #FF9000);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 144, 0, 0.45);
}

/* ===== КНОПКА "ПОДКЛЮЧИТЬ MTPROTO" ===== */
.proxy-button {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
  transition: all 0.3s ease;
  border: none;
}

.proxy-button:hover {
  background: linear-gradient(135deg, #c084fc, #a855f7); /* ярче */
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4);
}

/* --- Главная секция --- */
.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  max-width: 1200px;
  min-width: 0;
  margin: 10px auto;
  padding: 0 40px;
  width: 100%;
}

.left-column, .center-column, .right-column {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 3s ease forwards;
}

.center-column .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: rgba(50,50,50,0.6);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05);
}

.online {
  color: #22c55e;
  font-weight: bold;
}

/* --- Футер --- */
footer {
  padding: 20px 20px 16px;
  text-align: center;
  font-size: 0.95em;
  background: rgba(15, 15, 25, 0.95);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer p {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
  font-weight: 300;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
}

footer a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* --- Заголовки --- */
h2 {
  font-size: clamp(1.6em, 4vw, 2.4em);
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
}

/* --- Флаги --- */
.flag {
  width: 28px;
  height: 21px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 3px;
  object-fit: cover;
}

/* Убираем нижние отступы у всех колонок */
.button-column,
.left-column, 
.center-column, 
.right-column {
  margin-bottom: 0;
  margin-top: 0;
}

/* ======================================== */
/* СТИЛИ ДЛЯ ПРОКСИ-БЛОКОВ */
/* ======================================== */

/* Стили для плавного переключения */
.buttons-wrapper {
  transition: opacity 0.3s ease-in-out;
}

.buttons-wrapper.hidden {
  display: none;
}

.back-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 20px;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Контейнер для центрирования */
.proxy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Полное переопределение стилей для прокси-блока */
.proxy-single-block {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  margin: 0 auto !important;
}

.proxy-single-block .button-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.proxy-buttons-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  width: 100% !important;
}

/* Переопределяем все возможные стили кнопок */
.proxy-buttons-vertical .cta-button,
.proxy-buttons-vertical .proxy-button {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Убираем возможные флексы от родительских элементов */
.proxy-single-block .button-column::before,
.proxy-single-block .button-column::after {
  display: none !important;
}

/* ======================================== */
/* АДАПТИВНЫЕ СТИЛИ */
/* ======================================== */

/* --- Адаптив для ПК --- */
@media (min-width: 992px) {
  .buttons-columns {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .button-column {
    width: 50%;
    max-width: none;
    border-radius: 0;
  }
  
  .button-column:first-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .button-column:last-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .main-content {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .left-column, .center-column, .right-column {
    width: 45%;
    flex: none;
    min-height: 320px;
    border-radius: 0;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .center-column {
    border-radius: 16px 16px 16px 16px;
  }

  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
}

/* --- Адаптив для планшетов --- */
@media (min-width: 768px) and (max-width: 991px) {
  .main-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 10px auto;
    padding: 0 20px;
  }
  
  .left-column, .right-column {
    width: 50%;
    margin: 0;
    border-radius: 0;
  }
  
  .center-column {
    width: 100%;
    order: 3;
    margin: 0;
    border-radius: 16px 16px 16px 16px;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .left-column,
  .right-column {
    margin-bottom: 0;
  }
  
  .center-column {
    margin-top: 0;
  }
}

/* --- Адаптив для мобильных --- */
@media (max-width: 767px) {
  /* Мобильные стили — полностью отключаем анимацию */
  header {
    animation: none !important;
    opacity: 1 !important;
  }

  .button-column {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .left-column,
  .center-column,
  .right-column {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-in-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Стили для мобильной верстки */
  .buttons-columns {
    gap: 0;
    border-radius: 16px;
  }
  
  .button-column {
    border-radius: 16px;
    margin-bottom: 20px;
  }
  
  .button-column:first-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .button-column:last-child {
    margin-bottom: 0;
  }
  
  .main-content {
    gap: 0;
    padding: 0 15px;
  }
  
  .left-column, .center-column, .right-column {
    border-radius: 16px;
    margin-bottom: 20px;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .center-column {
    border-radius: 16px 16px 16px 16px;
  }

  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .right-column:last-child {
    margin-bottom: 0;
  }

  /* Стили для прокси-блока на мобильных */
  .proxy-single-block {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .proxy-buttons-vertical .cta-button,
  .proxy-buttons-vertical .proxy-button {
    white-space: normal !important;
  }

  /* Стили для мобильной адаптации текста */
  .main-title {
    font-size: 7.375rem;
    margin-top: 100px;
    margin-bottom: 0px;
    text-align: center;
    word-break: break-word;
  }

  .main-subtitle {
    font-size: 1.625rem;
    margin-bottom: 120px;
    text-align: center;
    color: #ccc;
    word-break: break-word;
    font-weight: 400;
  }

  .buttons-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
  }

  .button-column {
    max-width: 90%;
    text-align: center;
  }

  .cta-button, .proxy-button {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    text-align: center;
  }

  .left-column, .center-column, .right-column {
    width: 100%;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .card {
    font-size: 0.95rem;
    padding: 10px;
  }

  footer {
    font-size: 0.9rem;
    padding: 30px 10px;
  }
}

/* --- Дополнительная оптимизация для маленьких экранов --- */
@media (max-width: 480px) {
  .main-title {
    font-size: 2.2rem !important;
    margin-top: 50px !important;
  }
  
  .main-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }

  .cta-button, .proxy-button {
    font-size: 1rem;
    padding: 12px;
  }

  .card {
    font-size: 0.85rem;
  }
}

/* ======================================== */
/* АНИМАЦИИ */
/* ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInFooter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-text {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.fade-in-text:nth-child(1) {
  animation-delay: 0.3s; /* h1 */
}

.fade-in-text:nth-child(2) {
  animation-delay: 0.8s; /* p */
}

.main-title {
  font-size: 7.375rem;
  margin-top: 100px;
  margin-bottom: 0px;
  text-align: center;
}

.main-subtitle {
  font-size: 1.625rem;
  margin-bottom: 120px;
  text-align: center;
  color: #ccc;
}

.buttons-columns {
  margin-top: 60px;
  margin-bottom: 10px;
}

/* ======================================== */
/* МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ */
/* ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #fff;
}

.modal-window h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 25px;
  font-size: 24px;
}

.modal-window input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.modal-window input:focus {
  outline: none;
  border-color: #FF9000;
}

.modal-window input::placeholder {
  color: #666;
}

.modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF9000, #e67e00);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 5px;
}

.modal-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 144, 0, 0.3);
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.modal-switch {
  text-align: center;
  margin-top: 18px;
  color: #888;
  font-size: 14px;
}

.modal-switch a {
  color: #FF9000;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.modal-switch a:hover {
  text-decoration: underline;
}

.modal-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
  font-size: 14px;
}

.modal-message.error {
  display: block;
  background: rgba(255, 144, 0, 0.15);
  border: 1px solid rgba(255, 144, 0, 0.3);
  color: #FF9000;
}

.modal-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* ===== КАПЧА И СЛОЖНОСТЬ ПАРОЛЯ ===== */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.captcha-question {
  flex: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  user-select: none;
}

.captcha-refresh {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FF9000;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.captcha-refresh:hover {
  background: rgba(255, 144, 0, 0.15);
  border-color: rgba(255, 144, 0, 0.4);
  transform: rotate(90deg);
}

.pwd-strength {
  margin: -6px 0 10px;
}

.pwd-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.pwd-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 4px;
  transition: width 0.25s ease, background 0.25s ease;
}

.pwd-strength-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
  min-height: 14px;
}

/* ===== СОГЛАСИЕ С ПОЛИТИКОЙ (регистрация) ===== */
.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #9aa0a6;
  cursor: pointer;
  user-select: none;
}

/* Перебиваем .modal-window input { width:100% ... } */
.modal-window .modal-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #FF9000;
  cursor: pointer;
}

/* Всё, что связано с галочкой согласия, должно показывать «палец»:
   сам чекбокс, его подпись и ссылка внутри подписи */
.modal-consent,
.modal-consent * {
  cursor: pointer;
}

.modal-consent a {
  color: #FF9000;
  text-decoration: none;
}

.modal-consent a:hover {
  text-decoration: underline;
}

.captcha-question.is-loading {
  color: #888;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 14px;
}

.modal-loader {
  display: none;
  text-align: center;
  padding: 10px;
  color: #888;
}

.modal-loader.active {
  display: block;
}

.modal-loader::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Кнопка входа в навбаре меняет цвет при авторизации */
.navbar-btn.logged-in {
  background: linear-gradient(135deg, #FF9000, #e67e00);
  box-shadow: 0 2px 10px rgba(255, 144, 0, 0.2);
}

.navbar-btn.logged-in:hover {
  background: linear-gradient(135deg, #ffa133, #FF9000); /* ярче */
  box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3);
}

/* ========================================================== */
/* ГЛАВНАЯ СТРАНИЦА: HERO / СЕКЦИИ / CTA / ФУТЕР               */
/* ========================================================== */

.hero {
  width: 100%;
  padding: 56px 24px 40px;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sky-orange);
  margin-bottom: 22px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-orange);
  box-shadow: 0 0 8px var(--sky-orange);
  flex: none;
}

.hero-title {
  font-family: 'Konexy Personal', 'Segoe UI', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 24px;
}

.hero-accent {
  color: var(--sky-orange);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hero-btn-primary {
  background: var(--sky-orange);
  color: #141414;
  border-color: var(--sky-orange);
}

.hero-btn-primary:hover {
  background: var(--sky-orange-light);
  border-color: var(--sky-orange-light);
  box-shadow: 0 8px 26px rgba(255, 144, 0, 0.35);
  transform: translateY(-1px);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 144, 0, 0.45);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
}

.hero-meta-item svg {
  color: rgba(255, 255, 255, 0.3);
  flex: none;
}

/* ===== Визуальная панель ===== */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-ring-outer {
  width: 340px;
  height: 340px;
}

.hero-ring-inner {
  width: 220px;
  height: 220px;
  border-color: rgba(255, 144, 0, 0.2);
}

/* ===== Пульсирующие круги (расходятся от центра) ===== */
.hero-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;                       /* стартуем от размера щита */
  height: 128px;
  margin: -64px 0 0 -64px;            /* центрируем по щиту */
  border-radius: 50%;
  border: 1.5px solid rgba(255, 144, 0, 0.55);
  box-shadow: 0 0 24px rgba(255, 144, 0, 0.18),
              inset 0 0 24px rgba(255, 144, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: heroPulse 5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  will-change: transform, opacity;
}

/* Три волны со сдвигом — получается непрерывный «расход» от щита */
.hero-pulse-2 { animation-delay: 1.66s; }
.hero-pulse-3 { animation-delay: 3.33s; }

@keyframes heroPulse {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* Мягкое свечение щита в такт волнам */
.hero-shield {
  animation: shieldGlow 5s ease-in-out infinite;
}

@keyframes shieldGlow {
  0%, 100% {
    box-shadow: 0 0 70px rgba(255, 144, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 90px rgba(255, 144, 0, 0.42);
  }
}

/* Уважаем настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .hero-pulse,
  .hero-shield {
    animation: none;
  }
  .hero-pulse { opacity: 0; }
}

.hero-shield {
  position: relative;
  z-index: 2;
  width: 128px;
  height: 128px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 144, 0, 0.22), rgba(255, 144, 0, 0.04));
  border: 1px solid rgba(255, 144, 0, 0.45);
  color: var(--sky-orange);
  box-shadow: 0 0 70px rgba(255, 144, 0, 0.25);
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  color: var(--sky-orange);
}

.hero-chip svg {
  margin-bottom: 3px;
}

.hero-chip-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-chip-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.hero-chip-wifi {
  top: 46px;
  left: 0;
}

.hero-chip-lte {
  bottom: 54px;
  right: 0;
}

/* ===== Секции главной ===== */
.home-section {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  margin-bottom: 32px;
}

.section-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sky-orange);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin: 0;
  text-align: left;
}

/* Заголовки секций главной — в одну строку на десктопе */
@media (min-width: 992px) {
  .section-title {
    white-space: nowrap;
  }
}

.section-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.section-col {
  padding: 26px 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-col + .section-col {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.section-icon {
  color: var(--sky-orange);
  margin-bottom: 16px;
}

.section-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.section-col p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===== Серверы ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.server-item:hover {
  border-color: rgba(255, 144, 0, 0.4);
  background: rgba(255, 144, 0, 0.06);
}

.server-item .flag {
  margin-right: 0;
}

.server-status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sky-orange);
}

/* ===== Список ссылок-действий ===== */
.link-grid {
  display: flex;
  flex-direction: column;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.link-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.link-row-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.link-row-text p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  max-width: 520px;
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.link-action:hover {
  color: #141414;
  background: var(--sky-orange);
  border-color: var(--sky-orange);
  transform: translateY(-1px);
}

.link-action svg {
  transition: transform 0.22s ease;
}

.link-action:hover svg {
  transform: translateX(3px);
}

/* ===== CTA-полоса ===== */
.cta-band {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 34px 36px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 144, 0, 0.12), rgba(20, 20, 20, 0.7) 60%);
  border: 1px solid rgba(255, 144, 0, 0.28);
}

.cta-band-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 8px;
  text-align: left;
}

.cta-band-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 560px;
}

/* ===== Футер ===== */
.site-footer {
  width: 100%;
  background: rgba(10, 10, 10, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 42px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .navbar-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--sky-orange);
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ===== Адаптив главной ===== */
@media (max-width: 991px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual {
    min-height: 300px;
    order: -1;
  }

  .hero-ring-outer {
    width: 280px;
    height: 280px;
  }

  .hero-ring-inner {
    width: 180px;
    height: 180px;
  }

  .hero-shield {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  /* Волны масштабируются вместе со щитом */
  .hero-pulse {
    width: 104px;
    height: 104px;
    margin: -52px 0 0 -52px;
  }

  .hero-chip-wifi {
    top: 10px;
    left: 8%;
  }

  .hero-chip-lte {
    bottom: 16px;
    right: 8%;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 32px 16px 24px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    letter-spacing: -1px;
  }

  .hero-lead {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .home-section {
    padding: 36px 16px;
  }

  .section-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-col,
  .section-col + .section-col {
    padding: 22px 0 0;
    border-left: none;
  }

  .servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .link-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .link-action {
    width: 100%;
    justify-content: center;
  }

  .cta-band {
    padding: 12px 16px 40px;
  }

  .cta-band-inner {
    padding: 24px 20px;
    gap: 20px;
  }

  .site-footer-inner {
    padding: 32px 16px 24px;
    flex-direction: column;
    gap: 26px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }
}

/* ========================================================== */
/* НОВЫЙ НАВБАР: МЕНЮ (ОРАНЖЕВО-ЧЁРНО-БЕЛЫЙ)                  */
/* ========================================================== */

:root {
  --sky-orange: #FF9000;
  --sky-orange-light: #FFA133;
  --sky-orange-dark: #E67E00;
  --sky-black: #0D0D0D;
  --sky-white: #FFFFFF;
  --sky-muted: rgba(255, 255, 255, 0.6);
  --sky-line: rgba(255, 255, 255, 0.1);
}

.navbar-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.navbar-logo::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sky-orange);
  box-shadow: 0 0 12px rgba(255, 144, 0, 0.55);
  flex: none;
}

/* ===== Ссылки меню (ПК) ===== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a,
.nav-menu button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--sky-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu button:hover {
  color: var(--sky-white);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-menu a:active,
.nav-menu button:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Кнопка «Регистрация» — перебивает базовый стиль пунктов меню */
.nav-menu .nav-cta,
.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:active {
  color: #141414 !important;
}

.nav-menu .nav-cta {
  background: var(--sky-orange);
  border-color: var(--sky-orange);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  margin-left: 6px;
}

.nav-menu .nav-cta:hover {
  background: var(--sky-orange-light);
  border-color: var(--sky-orange-light);
  box-shadow: 0 8px 24px rgba(255, 144, 0, 0.4);
  transform: translateY(-1px);
}

.nav-menu .nav-cta:active {
  background: var(--sky-orange-dark);
  transform: translateY(0);
}

/* Активный раздел — «таблетка», как на макете */
.nav-menu a.nav-active {
  color: var(--sky-white);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

/* Пункт «Войти» с иконкой пользователя */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Пункт «Админ-панель» — виден только администраторам, слегка выделен цветом */
.nav-admin {
  color: var(--sky-orange, #FF9000) !important;
  border-color: rgba(255, 144, 0, 0.35) !important;
}

.nav-admin:hover {
  background: rgba(255, 144, 0, 0.12) !important;
  border-color: rgba(255, 144, 0, 0.6) !important;
}

.nav-login svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Иконки пунктов меню */
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  /* Чуть ниже базовой линии текста — визуально ровнее */
  transform: translateY(1.5px);
}

.nav-ico svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.nav-menu .nav-ico svg {
  width: 14px;
  height: 14px;
}

/* Большая выделенная кнопка «Регистрация» */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--sky-orange);
  color: #141414 !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-decoration: none;
  border: 1px solid var(--sky-orange);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--sky-orange-light);
  border-color: var(--sky-orange-light);
  box-shadow: 0 8px 24px rgba(255, 144, 0, 0.4);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* ===== Бургер (только мобайл) ===== */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sky-line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: none;
}

.nav-burger:hover {
  background: rgba(255, 144, 0, 0.15);
  border-color: rgba(255, 144, 0, 0.4);
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--sky-white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--sky-orange);
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--sky-orange);
}

/* ===== Выпадающее меню (мобайл) ===== */
.nav-dropdown {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 144, 0, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  padding: 10px 16px 18px;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-dropdown.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--sky-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(255, 144, 0, 0.12);
  color: var(--sky-orange);
}

.nav-dropdown .nav-cta {
  margin-top: 10px;
  justify-content: center;
  padding: 15px 20px;
  font-size: 1rem;
  color: #141414 !important;
  background: var(--sky-orange);
}

.nav-dropdown .nav-cta:hover {
  background: var(--sky-orange-light);
  color: #141414 !important;
}

.nav-dropdown .nav-sep {
  height: 1px;
  background: var(--sky-line);
  margin: 8px 4px;
}

.nav-dropdown .nav-logout {
  color: #ff6b6b;
}

.nav-dropdown .nav-logout:hover {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
}

/* ===== Адаптив навбара ===== */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-dropdown {
    top: 56px;
  }
}

@media (max-width: 480px) {
  .nav-dropdown {
    top: 50px;
  }
}

/* Затемнение под меню */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop.is-open {
  display: block;
}

/* ======================================== */
/* СТИЛИ ДЛЯ ГРУППЫ КНОПОК "ПОЛУЧИТЬ КЛЮЧ" */
/* ======================================== */

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.button-group .cta-button {
  margin: 0;
  max-width: 100%;
}

/* ===== КНОПКА "В TELEGRAM" ===== */
.button-group .tg-button {
  background: linear-gradient(135deg, #23B2F8, #1a8fc9);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(35, 178, 248, 0.25);
  transition: all 0.3s ease;
  border: none;
}

.button-group .tg-button:hover {
  background: linear-gradient(135deg, #4ac4ff, #23B2F8);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(35, 178, 248, 0.4);
}

/* ======================================== */
/* СТИЛИ ДЛЯ БЛОКА "ПРОКСИ НЕ НАЙДЕНЫ" */
/* ======================================== */

.proxy-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  width: 100%;
  min-height: 100px;
  gap: 8px;
}

.proxy-not-found .proxy-icon {
  font-size: 32px;
  opacity: 0.5;
}

.proxy-not-found .proxy-text {
  font-size: 18px;
  font-weight: 600;
  color: #888;
}

.proxy-not-found .proxy-hint {
  font-size: 14px;
  color: #555;
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
  .button-group {
    max-width: 100%;
  }
  
  .proxy-not-found {
    padding: 25px 15px;
    min-height: 80px;
  }
  
  .proxy-not-found .proxy-text {
    font-size: 16px;
  }
}