/* ==========================================================================
   Глобальные настройки и переменные
   ========================================================================== */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Manrope:wght@400;500;700&display=swap');

/* Переменные цветов */
:root {
    --dark-bg: #31262E;
    --dark-accent: #443541;
    --dark-accent-transparent: rgba(68, 53, 65, 0.9);
    --warm-brown: #805D57;
    --light-beige: #D9CBC0;
    --card-bg: #4A3F4B;
    --text-secondary: #B8A69A;
    --accent-purple: #6859AA;
    --accent-orange: #CC7F4E;
    --accent-purple-dark: #5A4B8C;
    --accent-orange-light: #E89C6A;
    --white-text: #FFFFFF;
    --border-outline: #805D57;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

.main {
    padding-top: 80px;
    padding-bottom: 60px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Типография */
h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--white-text);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
p, a, li { font-family: 'Roboto', sans-serif; }

a {
    text-decoration: none;
    color: var(--accent-purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* --- Унифицированные секции --- */
section {
    padding: 80px 0;
}

section .container {
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    color: var(--white-text);
    margin-bottom: 40px;
}

/* Вариант для мелких заголовков */
h2.section-title, h3.section-title {
    margin-top: 0;
}

/* Обеспечиваем визуальный ритм */
section + section {
    margin-top: 0; /* сбрасываем нежелательный зазор между секциями */
}

/* --- Последняя секция перед подвалом --- */
section:last-of-type {
    padding-bottom: 40px; /* немного воздуха, но не гигантский зазор */
    margin-bottom: 0; /* убираем внешний отступ */
}


/* Анимации и эффекты */
.logo-animation {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    height: 300px;
}

.logo-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(50px);
}

.def { animation: riseFade 1s ease-out forwards; z-index: 1; }
.link { animation: riseFade 1s ease-out 0.3s forwards; z-index: 2; }
.icon { animation: riseFade 1s ease-out 0.6s forwards; z-index: 0; }

@keyframes riseFade {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Звёздный фон */
#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: transparent;
    display: block;
    z-index: 1;
    pointer-events: none;
}

#stars {
    width: 1px;
    height: 1px;
    animation: animStar 30s linear infinite;
    box-shadow: 50px 50px var(--light-beige), 100px 150px var(--light-beige), 200px 100px var(--light-beige);
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-1000px); }
}

/* Шапка */
.header {
    background-color: var(--dark-accent-transparent);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Логотип по центру по вертикали --- */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    position: relative;
}

.logo img {
    display: block;
    height: 46px;
    width: auto;
}

/* hover-эффект без смещения */
.logo-img,
.logo-img-hover {
    position: relative;
    top: auto;
    left: auto;
}

.logo-img-hover {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img-hover {
    opacity: 1;
}

.logo:hover .logo-img {
    opacity: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item a {
    color: var(--white-text);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    background: var(--accent-purple-dark);
    color: var(--accent-orange-light);
}

.nav-item.active a {
    background: var(--accent-purple);
    color: var(--white-text);
}

.mobile-menu-btn {
    display: none;
}

/* Герой-секция */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-text {
    font-size: 24px;
    color: var(--light-beige);
    margin-bottom: 20px;
}

.hero-trial {
    font-size: 18px;
    color: var(--light-beige);
    margin-bottom: 20px;
}

/* Btn стили */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-purple);
    color: var(--white-text);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-outline);
}

.btn:hover {
    background: var(--accent-purple-dark);
}

.features {
    padding: 100px 0;
    text-align: center;
}

.features .features-grid {
    margin-bottom: 50px;
}

.features .btn {
    display: inline-block;
    margin: 0 auto;
}


/* Преимущества и тарифы (карточки) */
/* --- Преимущества --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Тарифы --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card, .pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--accent-purple-dark);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(90, 75, 140, 0.3);
}

.pricing-text {
    font-size: 18px;
    color: var(--light-beige);
    text-align: center;
    margin-bottom: 30px;
}

.pricing-card span {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-card .btn {
    margin-top: 15px;
}

/*--- Всего и активных пользователей ---*/

/* === Статистика === */
.stats {
  text-align: center;
  padding: 100px 0;
}

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

.stats-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-purple-dark);
  border-radius: 16px;
  padding: 30px 40px;
  min-width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(90, 75, 140, 0.3);
}

.stats-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-orange-light);
  margin-top: 10px;
}


/* --- Заголовки секции Telegram --- */
.telegram-title-section.main-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.telegram-subtitle {
    text-align: left;
    color: var(--white-text);
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* --- Кликабельные блоки Telegram --- */
.telegram-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.telegram-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(90, 75, 140, 0.3);
    background: var(--accent-purple-dark);
}

.telegram-preview:hover .telegram-title {
    color: var(--accent-orange-light);
}

.telegram-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.telegram-info {
    flex: 1;
}

/* О сервисе */
.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
}

/* Подвал */
    
.pre-footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 40px 0 0 0;
    z-index: 30;
	min-height: 1px !important;
    flex-shrink: 0 !important;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    height: 40px;
    margin-top: 10px;
}

.footer-description {
    font-size: 14px;
    color: var(--light-beige);
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-orange);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 20px 0;
}

.footer-legal p {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-legal-links a {
    color: var(--light-beige);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* --- Markdown контент --- */
.markdown-content {
    color: var(--light-beige);
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: var(--white-text);
    margin-top: 40px;
    margin-bottom: 20px;
}

.markdown-content p {
    margin-bottom: 20px;
}

.markdown-content a {
    color: var(--accent-purple);
    text-decoration: underline;
}

.markdown-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* === Страница статуса === */
.status-section {
    background-color: var(--dark-bg);
    min-height: calc(100vh - 300px); /* чтобы футер не прилипал к контенту */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.status-panel {
  background: var(--card-bg);
  border: 1px solid var(--accent-purple-dark);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.status-subtitle {
  color: var(--light-beige);
  font-size: 18px;
  margin-bottom: 40px;
}

.status-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.vpn-node {
  background: var(--dark-accent-transparent);
  border: 1px solid var(--border-outline);
  border-radius: 16px;
  padding: 20px;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpn-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(104, 89, 170, 0.4);
}

.node-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: 5px;
}

.node-circle.online {
  background: #1fc46a;
  box-shadow: 0 0 10px rgba(31, 196, 106, 0.7);
}

.node-circle.offline {
  background: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

.node-name {
  color: var(--white-text);
  font-weight: 600;
}

.node-status {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-status.online {
  color: #1fc46a;
}

.node-status.offline {
  color: #ff4d4d;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
}

.online-count {
  margin-left: 6px;
  font-size: 0.9em;
  color: #4caf50;
  font-weight: 500;
}


/* ==========================================================================
   FAQ — Специфичные стили (аккордеон, поиск, FAB)
   ========================================================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.faq-search {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--accent-purple-dark);
    border-radius: 16px;
    color: var(--white-text);
    font-size: 16px;
    margin-bottom: 40px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.faq-search::placeholder {
    color: var(--text-secondary);
}

.faq-search:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(104, 89, 170, 0.3);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--accent-purple-dark);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(104, 89, 170, 0.3);
    border-color: var(--accent-purple);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(104, 89, 170, 0.15);
}

.faq-question h3 {
    margin: 0;
    color: var(--white-text);
    font-size: 20px;
    font-weight: 600;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-arrow.active {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(68, 53, 65, 0.5);
    border-top: 1px solid rgba(128, 93, 87, 0.2);
}

.faq-answer.open {
    padding: 24px 20px;
    max-height: 1200px;
}

.faq-answer :last-child {
    margin-bottom: 0;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 16px;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Плавающая кнопка FAQ — на всех страницах */
.faq-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--accent-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(104, 89, 170, 0.5);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-orange-light);
}

.faq-fab:hover {
    transform: scale(1.12);
    background: var(--accent-purple-dark);
    box-shadow: 0 8px 28px rgba(104, 89, 170, 0.7);
}

.faq-fab svg {
    stroke: var(--white-text);
}

/* Фикс для футера — прилипает к низу */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .faq-container {
        padding: 10px;
    }
    
    .faq-question h3 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .faq-fab {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
}



/* Адаптивность */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        justify-items: center;
    }
    .pricing-card {
        max-width: 400px;
        width: 100%;
    }
    .about-content {
        flex-direction: column;
    }
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}


