@font-face {
  font-family: 'AppleColorEmoji';
  src: url('/fonts/AppleColorEmoji.ttf') format('truetype');
  unicode-range: U+1F000-1FAFF, U+2600-27BF, U+2300-23FF, U+2B50, U+200D, U+FE0F;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0d0d0d;
  --panel-raised: #141414;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-glow: rgba(255, 255, 255, 0.22);
  --text: #ededed;
  --muted: #888888;
  --btn-bg: #ededed;
  --btn-ink: #050505;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'AppleColorEmoji', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
}
/* ========================================================
   АТМОСФЕРНЫЕ ПЛАВАЮЩИЕ СВЕТОВЫЕ СГУСТКИ
   ======================================================== */
.ambient-glow {
  display: none !important;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, #ffffff 0%, #38bdf8 50%, transparent 80%);
  animation: floatAmbient 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 450px;
  height: 450px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, #ffffff 0%, #a855f7 50%, transparent 80%);
  animation: floatAmbient 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ========================================================
   МАТОВО-СТЕКЛЯННЫЙ ФИКСИРОВАННЫЙ ХЕДЕР (FROSTED GLASS)
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: 72px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  z-index: 100;
  transition: all 0.25s ease;
}

.frosted-glass {
  background: rgba(0, 0, 0, 0.92) !important;
  border-bottom: 1px solid var(--panel-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 18px;
  height: 18px;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav .nav-link {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.18s ease;
  position: relative;
  padding: 8px 0;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #ffffff;
}

.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}

.button-primary:active {
  transform: scale(0.98);
}

.button-secondary {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--panel-raised);
  border-color: var(--panel-border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Пульсирующий живой луч для главной кнопки */
/* Редкий блик раз в 8 секунд: 1 сек пробег, 7 сек пауза */
.pulse-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.7) 50%, 
    transparent 100%
  );
  transform: rotate(25deg);
  animation: btnGleam 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes btnGleam {
  0% {
    left: -70%;
  }
  14% {
    /* Блик полностью пробегает за ~1.1 секунды */
    left: 150%;
  }
  100% {
    /* Оставшиеся ~6.9 секунд луч ждёт за экраном */
    left: 150%;
  }
}

/* ========================================================
   ПЛАВНАЯ СМЕНА СТРАНИЦ
   ======================================================== */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  width: 100%;
}

.view-section.active {
  display: block;
  animation: viewFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.leaving {
  display: block;
  animation: viewFadeOut 0.18s ease forwards;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes viewFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Hero Section */
.hero {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 55px 4% 65px;
  align-items: center;
  width: 100%;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero h1 span { display: block; }

.accent-glow {
  color: #ffffff;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.35);
}

.hero-description {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.trust-points {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon-wrap {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ========================================================
   ПЛАВАЮЩИЙ ДИНАМИЧЕСКИЙ БЛОК ЧАТА (FLOATING CARDS)
   ======================================================== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.top-note-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

.float-subtle {
  animation: floatSubtle 4.5s ease-in-out infinite alternate;
}

.float-subtle-reverse {
  animation: none !important;
}

@keyframes floatSubtle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-1deg); }
}

.handwritten {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive;
  font-style: italic;
  font-size: 13.5px;
  color: #38bdf8;
  line-height: 1.3;
  user-select: none;
}

.top-note {
  transform: rotate(-6deg);
  text-align: right;
  margin-right: 14px;
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px) rotate(1.5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  }
  100% {
    transform: translateY(-10px) rotate(0.5deg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 255, 255, 0.03);
  }
}

.mock-chat-card {
  width: 100%;
  max-width: 420px;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.mock-chat-card:hover {
  border-color: var(--panel-border-glow);
}

.mock-header {
  height: 50px;
  background: rgba(22, 22, 22, 0.7);
  border-bottom: 1px solid var(--panel-border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.online-dot-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.mock-badge {
  font-size: 10.5px;
  color: var(--muted);
}

.mock-pill {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  padding: 2px 8px;
  border-radius: 10px;
  color: #d4d4d4;
}

.mock-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  background: rgba(8, 8, 8, 0.9);
}

.mock-bubble {
  width: fit-content !important;
  max-width: 82% !important;
  padding: 8px 12px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.35;
  position: relative;
  box-sizing: border-box;
}

.mock-bubble p {
  word-break: break-word;
  white-space: normal;
}

.mock-bubble.partner {
  align-self: flex-start;
  background: #171d2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-bottom-left-radius: 3px;
}

.mock-bubble.me {
  align-self: flex-end;
  background: #ededed;
  color: #050505;
  border-bottom-right-radius: 3px;
}

.mock-time {
  font-size: 9px;
  opacity: 0.6;
  margin-top: 3px;
  display: block;
}

.mock-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
}

.mock-footer {
  padding: 10px 14px;
  background: rgba(16, 16, 16, 0.8);
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-input {
  flex: 1;
  background: #181818;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  color: var(--muted);
}

.mock-send {
  width: 32px;
  height: 32px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.mock-send:hover {
  transform: scale(1.08);
}

.bottom-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  transform: rotate(-4deg);
}

.bottom-note svg {
  width: 44px;
  color: #fff;
}

/* ========================================================
   ДИНАМИЧЕСКИЕ КАРТОЧКИ ПРЕИМУЩЕСТВ (INTERACTIVE CARDS)
   ======================================================== */
.features {
  border-block: 1px solid var(--panel-border);
  background: #060606;
}

.features-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 4%;
  gap: 24px;
}

.dynamic-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Подсветка от курсора */
.dynamic-card .card-glow {
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dynamic-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.02);
}

.dynamic-card:hover .card-glow {
  opacity: 1;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dynamic-card:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.feature h2 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.feature p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ========================================================
   ИНФОРМАЦИОННАЯ ПОЛОСА (COMMUNITY STRIP)
   ======================================================== */
.community-strip {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  padding: 36px 4%;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--panel-border-glow);
}

.stat-counter {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.community-invite-card {
  background: var(--panel-raised);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.community-invite-card strong {
  color: #ffffff;
}

.tg-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  max-width: 1360px;
  margin: auto auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4%;
  font-size: 11.5px;
  color: var(--muted);
  width: 100%;
}

.footer-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.footer-tg-link:hover {
  color: #ffffff;
}

/* Внутренние страницы контента */
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 4% 80px;
  min-height: 70vh;
}

.page-header {
  margin-bottom: 28px;
}

.back-link {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #fff;
}

.page-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.page-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-card {
  flex-direction: column;
  gap: 8px;
}

.content-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.content-card p {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
}

.bullet-list {
  padding-left: 20px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13.5px;
}

/* Плавный аккордеон FAQ */
/* ========================================================
   ПЛАВНЫЙ АККОРДЕОН FAQ
   ======================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  cursor: pointer;
  display: block;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item summary {
  list-style: none;
  font-size: 14.5px;
  color: #fff;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 2px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Иконка плюсика */
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: #ffffff;
}

/* При закрытии или подготовке к открытию — держим плюсик */
.faq-item.is-closing summary::after,
.faq-item.is-opening summary::after {
  transform: rotate(0deg) !important;
  color: var(--muted) !important;
  transition: none !important;
}

/* Плавный Grid для высоты */
.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.faq-item[open] .faq-content-wrapper {
  grid-template-rows: 1fr;
}

/* Фиксация нулевой высоты на старте открытия и при закрытии */
.faq-item.is-opening .faq-content-wrapper {
  grid-template-rows: 0fr !important;
  transition: none !important;
}

.faq-item.is-closing .faq-content-wrapper {
  grid-template-rows: 0fr;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
}

/* Плавное проявление текста */
.faq-content-inner p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-content-inner p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s;
}

.faq-item.is-opening .faq-content-inner p {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  transition: none !important;
}

.faq-item.is-closing .faq-content-inner p {
  opacity: 0;
  transform: translateY(-6px);
  transition-delay: 0s;
}
/* ========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 28px;
    gap: 32px;
  }
  .hero-description {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .trust-points {
    justify-content: center;
  }
  .features-inner {
    grid-template-columns: 1fr 1fr;
  }
  .community-strip {
    grid-template-columns: 1fr 1fr;
  }
}
/* --- СТИЛИ ДЛЯ КНОПКИ БУРГЕРА --- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px;
  z-index: 120;
}
/* --- СТИЛИЗАЦИЯ ТАБОВ С ПЛАВАЮЩИМ ПОЛЗУНКОМ --- */
.mode-tabs {
  position: relative !important;
  display: inline-flex !important;
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  margin-top: 6px !important;
  gap: 0 !important;
  z-index: 1;
}

/* Плавающий белый ползунок (по умолчанию слева — под "Подробный фильтр") */
.mode-tabs::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: #ededed;
  border-radius: 7px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}

/* Когда активен быстрый поиск (кнопка справа) — ползунок перекатывается вправо */
.mode-tabs.quick-active::before {
  transform: translateX(100%);
}

.tab-btn {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: #71717a !important;
  padding: 7px 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease !important;
  user-select: none;
}

/* Текст активной кнопки становится черным поверх белого ползунка */
.tab-btn.active {
  color: #0a0a0a !important;
}

.tab-btn:hover:not(.active) {
  color: #d4d4d4 !important;
}

/* --- ПЛАВНОЕ СКРЫТИЕ ПОДРОБНЫХ ФИЛЬТРОВ --- */
/* Плавное затухание прозрачности и масштаба карточек без ломки grid-позиций */
.detailed-only {
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.setup-grid.mode-quick .detailed-only {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.98) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Для мобильной вертикальной колонки дополнительно плавно схлопываем высоту */
@media (max-width: 768px) {
  .detailed-only {
    transition: opacity 0.22s ease, max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, margin 0.3s ease;
    max-height: 500px;
  }
  .setup-grid.mode-quick .detailed-only {
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
  }
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ededed;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 680px) {
  .burger-btn {
    display: flex !important;
  }
}
@media (max-width: 680px) {
  .site-header {
    height: 64px;
  }
  .burger-btn {
    display: flex;
  }
  .header-start {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 4%;
    right: 4%;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--panel-border-glow);
    border-radius: 14px;
    padding: 16px;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero h1 {
    font-size: clamp(28px, 8.5vw, 42px);
    letter-spacing: -1.2px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
  }
  .features-inner {
    grid-template-columns: 1fr;
  }
  .community-strip {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .top-note-wrap {
    justify-content: center;
  }
  .top-note {
    transform: rotate(0deg);
    margin-right: 0;
    text-align: center;
  }
}

/* ========================================================
   MOBILE PERFORMANCE
   ======================================================== */

@media (max-width: 768px) {

  /* Парящие элементы */
  .floating-card,
  .float-subtle,
  .float-subtle-reverse {
    animation: none !important;
    transform: none !important;
  }

  /* Главная карточка чата */
  .mock-chat-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0e0e0e !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
  }

  /* Мобильное меню */
  .main-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0e0e0e !important;
  }

  /* Убираем декоративные hover-эффекты */
  .dynamic-card .card-glow {
    display: none !important;
  }

  .dynamic-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .dynamic-card:hover .feature-icon {
    transform: none !important;
  }

  /* Блик кнопки */
  .pulse-btn::after {
    display: none !important;
    animation: none !important;
  }
}