/**
 * style.css — стили заглушки «Свободные Нижний Новгород»
 *
 * @version 1.6.1
 * @updated 2026-07-06
 *
 * CHANGELOG:
 * v1.6.1 (2026-07-06) - Лента фона заметнее: блюр 2.5px -> 1.2px,
 *                       прозрачность .45 -> .62, градиент мягче
 * v1.6.0 (2026-07-06) - Своя лента постов вместо iframe: карточки
 *                       в стиле сайта, медленный вертикальный дрейф
 * v1.5.0 (2026-07-06) - Лента канала в фоне справа: блюр, затемнение,
 *                       скрытие на узких экранах
 * v1.4.0 (2026-07-06) - Иконки Font Awesome: фирменные цвета соцсетей,
 *                       выравнивание в чипах и кнопках
 * v1.3.0 (2026-07-06) - Стили кнопок шаринга «Расскажи о нас»
 * v1.2.0 (2026-07-06) - Ссылки-чипы в блоке проектов/сервисов,
 *                       страховка кнопок на узких экранах
 * v1.0.0 (2026-07-06) - Первая версия: тёмный фон, плавающая дымка,
 *                       логотип-мазок, навигация сверху и снизу
 *
 * ИНСТРУКЦИИ ДЛЯ CLAUDE (НЕ УДАЛЯТЬ!):
 * 1. ВЕРСИОННОСТЬ — обновлять при каждом изменении
 * 2. ЦВЕТА И КОНТРАСТ: тёмный фон, светлый текст; красный фирменный
 *    #b8272c — только для мазка и кнопок
 * 3. НЕ МЕНЯТЬ работающие блоки без запроса
 */

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

body {
  background: #131118;               /* тёмный фон */
  color: #d8d3c8;
  font-family: 'Manrope', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   ДЫМКА: большие размытые пятна бледных цветов, медленно плавают
   ============================================================ */
.smoke {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: drift 26s ease-in-out infinite alternate;
}
.smoke.s1 { width: 420px; height: 300px; top: -8%; left: 8%;  background: #7fb8d8; opacity: .13; }
.smoke.s2 { width: 380px; height: 340px; top: 28%; right: -8%; background: #8b7fd8; opacity: .10; animation-duration: 32s; animation-delay: 3s; }
.smoke.s3 { width: 360px; height: 300px; bottom: -6%; left: -6%; background: #5f8a86; opacity: .11; animation-duration: 29s; animation-delay: 6s; }
.smoke.s4 { width: 280px; height: 230px; bottom: 12%; right: 20%; background: #b58fa0; opacity: .08; animation-duration: 35s; animation-delay: 1.5s; }
.smoke.s5 { width: 300px; height: 240px; top: 45%; left: 30%; background: #b8a97f; opacity: .06; animation-duration: 38s; animation-delay: 9s; }

@keyframes drift { /* медленное плавание пятна по экрану */
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.12); }
  to   { transform: translate(-50px, -30px) scale(.95); }
}

/* Контент поверх дымки */
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   ВЕРХНЯЯ НАВИГАЦИЯ
   ============================================================ */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 18px 0;
}
.topnav .mini-logo {
  font-family: 'Amatic SC', cursive;
  font-size: 26px; font-weight: 700; letter-spacing: 2px;
  color: #f3efe6;
  background: #b8272c;               /* мини-мазок */
  padding: 0 10px 2px;
  transform: rotate(-1deg);
  text-decoration: none;
}
.topnav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav nav a {
  color: #c9c4b8; text-decoration: none; font-size: 14px;
  border-bottom: 1px solid transparent;
}
.topnav nav a:hover { color: #fff; border-color: #b8272c; }

/* ============================================================
   ГЕРОЙ: логотип-мазок, город, счётчик, описание
   ============================================================ */
.hero { text-align: center; padding: 8vh 0 32px; }

.logo-stroke { /* красная полоса-мазок: горизонтальная, края рваные */
  display: inline-block;
  position: relative;
  padding: 4px 34px 10px;
  margin-bottom: 18px;
}
.logo-stroke::before {
  content: '';
  position: absolute; inset: 12% -6px 10% -6px;
  background: #b8272c;
  /* лёгкая неровность краёв мазка — без диагонали */
  clip-path: polygon(0% 22%, 3% 4%, 97% 0%, 100% 30%, 99% 78%, 96% 100%, 4% 96%, 0% 70%);
}
.logo-stroke h1 {
  position: relative;
  font-family: 'Amatic SC', cursive; /* афишные рукописные буквы, Ы без «двоения» */
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 700;
  letter-spacing: 8px;
  color: #f3efe6;
  line-height: 1;
}

.city {
  font-size: clamp(15px, 3vw, 20px);
  letter-spacing: 8px;
  color: #c9c4b8;
  margin-bottom: 10px;
}
.count { font-size: 16px; color: #8fd0a8; margin-bottom: 30px; }

.about {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 16px; line-height: 1.75; color: #aaa69c;
  text-align: left;
}
.about b { color: #d8d3c8; font-weight: 600; }

/* ============================================================
   КНОПКИ TELEGRAM
   ============================================================ */
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
/* v1.2.0: длинные подписи кнопок не вылезают на узких экранах */
.btn { max-width: 100%; text-align: center; white-space: normal; line-height: 1.35; }
.btn-red {
  background: #b8272c; color: #fff;
  box-shadow: 0 4px 22px rgba(184, 39, 44, .35);
}
.btn-ghost {
  border: 1.5px solid #b8272c; color: #e88a8d;
}
.btn-ghost:hover { background: rgba(184, 39, 44, .12); }
.btn-note { font-size: 13px; color: #6f6b7d; margin-bottom: 40px; }

/* ============================================================
   ПРОЕКТЫ И СЕРВИСЫ
   ============================================================ */
.links-block {
  border-top: 1px solid #2a2833;
  padding: 22px 0;
  font-size: 15px; line-height: 2;
  text-align: center;
}
.links-block .label { color: #6f6b7d; font-size: 14px; }
/* Чипы-ссылки (v1.2.0): компактные пилюли вместо длинных подчёркиваний */
.links-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.chip {
  display: inline-block;
  border: 1px solid #3a3745;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px; color: #d8d3c8;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
a.chip:hover { border-color: #b8272c; color: #fff; }
.chip-soon { color: #7a7686; border-style: dashed; }

/* Нижняя навигация-повтор и футер */
.bottomnav { text-align: center; padding: 10px 0 26px; }
.footer {
  text-align: center;
  padding: 18px 0 30px;
  font-size: 13px; color: #5f5b6b;
  border-top: 1px solid #221f2b;
}
.footer a { color: #8b8798; text-decoration: none; }
.footer a:hover { color: #c9c4b8; }


/* ============================================================
   КНОПКИ ШАРИНГА (v1.3.0): ряд чипов «Расскажи о нас»
   ============================================================ */
.share-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  margin: 26px 0 40px;
}
.share-label { color: #6f6b7d; font-size: 14px; }
button.share-chip { /* кнопки выглядят как чипы-ссылки */
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  border: 1px solid #3a3745; border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; color: #d8d3c8;
  transition: border-color .15s, color .15s;
}
button.share-chip:hover { border-color: #b8272c; color: #fff; }


/* ============================================================
   ИКОНКИ FONT AWESOME (v1.4.0): выравнивание и фирменные цвета
   ============================================================ */
.chip i, .btn i, .topnav nav a i { margin-right: 4px; }
.ic-tg { color: #2aa5e0; } /* фирменный Telegram */
.ic-vk { color: #4a86d8; } /* фирменный VK */
.ic-wa { color: #4fce5d; } /* фирменный WhatsApp */


/* ============================================================
   ЛЕНТА КАНАЛА В ФОНЕ (v1.5.0): справа, заблюрена и приглушена
   ============================================================ */
.tg-bg {
  position: fixed;
  top: 0; right: 0;
  width: 430px; height: 100vh;
  z-index: 0;                        /* под контентом (.wrap z-index:1) */
  overflow: hidden;
  filter: blur(1.2px) saturate(.85); /* блюр самой ленты (v1.6.1: было мутно) */
  opacity: .62;
  pointer-events: none;              /* фон не перехватывает клики */
}
/* Лента-карточки (v1.6.0): рендерим сами, телега не нужна клиенту */
.tg-feed {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 26px;
  animation: feedDrift 70s linear infinite; /* медленный дрейф вверх */
}
.tg-post {
  background: rgba(26, 23, 34, .85);
  border: 1px solid #2a2833;
  border-radius: 14px;
  padding: 12px 15px;
}
.tg-post-text { font-size: 13px; line-height: 1.55; color: #c9c4b8; }
.tg-post-date { font-size: 11px; color: #6f6b7d; margin-top: 6px; }
@keyframes feedDrift { /* список задублирован: -50% = бесшовный цикл */
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.tg-fade {                           /* растворение ленты в фон страницы слева */
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #131118 0%,
    rgba(19, 17, 24, .50) 30%,
    rgba(19, 17, 24, .15) 100%); /* v1.6.1: гасим слабее — посты читаются */
}
/* На узких экранах лента-фон мешала бы читать — прячем */
@media (max-width: 1099px) { .tg-bg { display: none; } }
