:root {
  --bg: #080910;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #eef3f6;
  --muted: #9fb2c2;
  --primary: #4ef0d2;
  --primary-2: #8b7bff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(78, 240, 210, 0.08), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(139, 123, 255, 0.10), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.7), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.top-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 48px;
  background: rgba(8, 9, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  gap: 16px;
  flex: 1;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--panel-strong);
}

.lang-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #0a0b12;
  box-shadow: 0 4px 12px rgba(78, 240, 210, 0.2);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, top 0.2s, bottom 0.2s;
}

.burger::before { top: 14px; }
.burger::after { bottom: 14px; }
.burger.open::before { top: 19px; transform: rotate(45deg); }
.burger.open::after { bottom: 19px; transform: rotate(-45deg); }

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #0a0b12;
  box-shadow: 0 10px 30px rgba(78, 240, 210, 0.25);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(78, 240, 210, 0.35);
}

.ghost {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.lg {
  padding: 12px 20px;
  border-radius: 14px;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding: 32px;
  margin-top: 24px;
  background: linear-gradient(145deg, rgba(78, 240, 210, 0.08), rgba(139, 123, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(78, 240, 210, 0.12);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.stats span {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-feature-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.hero-feature-desc {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hero-card {
  position: relative;
}

.screen {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  min-height: 340px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.screen.telegram-style {
  background-color: #ffffff; /* Белый фон */
  position: relative;
}

.screen.telegram-style::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/tg-chat-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4; /* 40% непрозрачности для лучшей читаемости */
  pointer-events: none;
  z-index: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(78, 240, 210, 0.14);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.screen.telegram-style .status {
  background: rgba(255, 255, 255, 0.9);
  color: #3390ec;
  border: 1px solid rgba(51, 144, 236, 0.3);
}

.chat-bubbles {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.bubble {
  max-width: 55%;
  position: relative;
  display: flex;
}

.bubble.user {
  margin-left: auto;
  margin-right: -12px;
  justify-content: flex-end;
}

.bubble.bot {
  margin-left: -12px;
  justify-content: flex-start;
}

.bubble-content {
  padding: 6px 10px;
  word-wrap: break-word;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  min-height: fit-content;
  flex-wrap: wrap;
}

.bubble-text {
  flex: 1;
  word-wrap: break-word;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #000000;
  min-width: 0;
  text-align: left;
}

.bubble-time {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.bubble.user .bubble-time {
  color: #4a9e5f;
}

/* Отправленные сообщения (справа, зеленые) */
.bubble.user .bubble-content {
  background-color: #dcf8c6;
  color: #000000;
  /* Зеркальная версия SVG для отправленных сообщений (хвостик справа) */
  mask-image: url("data:image/svg+xml,%3Csvg width='291' height='56' viewBox='0 0 291 56' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath transform='scale(-1,1) translate(-291,0)' d='M31.0673 0H264C283.61 0 291 13.6725 291 29.2327C291 44.793 283.61 56 264 56H38C27.3473 56 21.321 54.7264 16.8824 50.5C15.107 54.022 7.10175 55.2956 0 56C3.55088 54.239 8.26138 54.9434 8.70524 47.8994C8.70496 42.9686 8.70496 46.4906 8.70496 42.9686C8.70496 40.151 8.70524 35.5724 8.70525 27.824C8.70524 16.2013 8.70527 29.2327 8.70525 19.7233C9.14911 10.2138 15.976 0 31.0673 0Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='291' height='56' viewBox='0 0 291 56' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath transform='scale(-1,1) translate(-291,0)' d='M31.0673 0H264C283.61 0 291 13.6725 291 29.2327C291 44.793 283.61 56 264 56H38C27.3473 56 21.321 54.7264 16.8824 50.5C15.107 54.022 7.10175 55.2956 0 56C3.55088 54.239 8.26138 54.9434 8.70524 47.8994C8.70496 42.9686 8.70496 46.4906 8.70496 42.9686C8.70496 40.151 8.70524 35.5724 8.70525 27.824C8.70524 16.2013 8.70527 29.2327 8.70525 19.7233C9.14911 10.2138 15.976 0 31.0673 0Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

/* Полученные сообщения (слева, белые) */
.bubble.bot .bubble-content {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #e0e0e0;
  padding-left: 14px;
  /* Используем новый SVG для формы пузыря */
  mask-image: url("data:image/svg+xml,%3Csvg width='291' height='56' viewBox='0 0 291 56' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M31.0673 0H264C283.61 0 291 13.6725 291 29.2327C291 44.793 283.61 56 264 56H38C27.3473 56 21.321 54.7264 16.8824 50.5C15.107 54.022 7.10175 55.2956 0 56C3.55088 54.239 8.26138 54.9434 8.70524 47.8994C8.70496 42.9686 8.70496 46.4906 8.70496 42.9686C8.70496 40.151 8.70524 35.5724 8.70525 27.824C8.70524 16.2013 8.70527 29.2327 8.70525 19.7233C9.14911 10.2138 15.976 0 31.0673 0Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='291' height='56' viewBox='0 0 291 56' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M31.0673 0H264C283.61 0 291 13.6725 291 29.2327C291 44.793 283.61 56 264 56H38C27.3473 56 21.321 54.7264 16.8824 50.5C15.107 54.022 7.10175 55.2956 0 56C3.55088 54.239 8.26138 54.9434 8.70524 47.8994C8.70496 42.9686 8.70496 46.4906 8.70496 42.9686C8.70496 40.151 8.70524 35.5724 8.70525 27.824C8.70524 16.2013 8.70527 29.2327 8.70525 19.7233C9.14911 10.2138 15.976 0 31.0673 0Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(139, 123, 255, 0.15);
  color: #d7d3ff;
  font-weight: 600;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.screen.telegram-style .pill {
  background: rgba(255, 255, 255, 0.9);
  color: #3390ec;
  border: 1px solid rgba(51, 144, 236, 0.3);
}

.pill.small {
  padding: 6px 10px;
  font-weight: 600;
}

.floating-card {
  position: absolute;
  right: 5px;
  bottom: 20px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 9, 16, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  z-index: 10;
}

.floating-card span {
  display: block;
  color: var(--primary);
  font-weight: 700;
}

.panel {
  margin-top: 52px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel.accent {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(139, 123, 255, 0.05));
}

.panel.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.section-head h2 {
  margin: 4px 0 10px;
  font-size: 28px;
}

.section-head .sub {
  color: var(--muted);
  margin: 0 0 32px 0;
}

.cards {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}

.card h3 {
  margin-top: 6px;
}

.card p {
  color: var(--muted);
}

.case .metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.feature {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.step {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(78, 240, 210, 0.12);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing .card {
  display: flex;
  flex-direction: column;
}

.pricing .card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1; /* Списки растягиваются, чтобы footer был на одном уровне */
  margin-bottom: 0;
  margin-top: 0;
}

.pricing-included {
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.pricing-footer {
  margin-top: 20px; /* Отступ от списка */
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0; /* Предотвращаем сжатие footer */
}

.pricing-footer p {
  margin: 6px 0;
}

.pricing .featured {
  border-color: rgba(78, 240, 210, 0.6);
  background: linear-gradient(160deg, rgba(78, 240, 210, 0.12), rgba(139, 123, 255, 0.12));
  box-shadow: 0 12px 38px rgba(78, 240, 210, 0.2);
  display: flex;
  flex-direction: column;
}

.pricing .card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  min-height: 2.6em; /* Фиксированная минимальная высота для выравнивания заголовков */
  line-height: 1.3;
}

.pricing .card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 16px;
  min-height: 1.56em; /* Фиксированная минимальная высота для выравнивания цен */
  line-height: 1.3;
}

/* Минимальная высота для описания, чтобы "Включено:" начиналось на одной линии */
.pricing .card > p:not(.pricing-included):not(.price) {
  min-height: 5em; /* Минимальная высота для описания, чтобы "Включено:" было на одной линии */
  margin-bottom: 0;
  line-height: 1.5;
}

.pricing .featured .primary {
  margin-top: auto;
  margin-bottom: 0;
}

/* Subscription cards - кнопки прижаты к низу */
#subscription .card {
  display: flex;
  flex-direction: column;
  padding-top: 48px; /* Отступ для бейджа "Рекомендуем" */
  position: relative;
}

#subscription .card .primary {
  margin-top: auto;
  margin-bottom: 0;
}

/* Выравнивание названий и цен тарифов на одной линии */
#subscription .card .pill.small {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  z-index: 1;
}

/* Контейнер для заголовка и цены с фиксированной высотой */
#subscription .card > h3,
#subscription .card > .price {
  flex-shrink: 0;
}

#subscription .card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.3;
  height: 2.6em; /* Фиксированная высота для точного выравнивания заголовков */
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

/* Отступ справа только для карточки с бейджем */
#subscription .card.featured h3 {
  padding-right: 100px; /* Отступ справа, чтобы заголовок не перекрывался бейджем */
  height: 2.6em; /* Та же фиксированная высота для точного выравнивания */
}

#subscription .card .price {
  margin-top: 20px; /* Отступ сверху для блока с ценой */
  margin-bottom: 0; /* Убираем margin-bottom, чтобы использовать общий отступ */
  line-height: 1.3;
  height: 1.56em; /* Фиксированная высота для точного выравнивания цен */
  display: flex;
  align-items: flex-start;
}

/* Общий отступ перед списком для выравнивания начала списков */
#subscription .card ul {
  margin-top: 20px; /* Одинаковый отступ перед списком для всех карточек */
  margin-bottom: 0;
  padding-left: 18px; /* Отступ слева такой же, как у цен (padding карточки), чтобы маркеры были на одном уровне */
}

/* Адаптивность: карточки в колонку при появлении бургер-меню */
@media (max-width: 960px) {
  #subscription .cards.grid-3 {
    grid-template-columns: 1fr;
  }
  
  #pricing .cards.grid-2 {
    grid-template-columns: 1fr;
  }
}

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

.qr-placeholder {
  min-height: 240px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  padding: 20px;
}

.qr-placeholder .qr-code-image {
  width: 260px;
  height: 260px;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  /* Делаем черный QR-код зеленовато-светящимся */
  filter: brightness(0) invert(1)
          sepia(100%) saturate(300%) hue-rotate(145deg)
          drop-shadow(0 0 6px rgba(78, 240, 210, 0.9))
          drop-shadow(0 0 12px rgba(78, 240, 210, 0.6))
          drop-shadow(0 0 18px rgba(78, 240, 210, 0.4));
}

.qr-placeholder .qr-code-image:hover {
  filter: brightness(0) invert(1)
          sepia(100%) saturate(300%) hue-rotate(145deg)
          drop-shadow(0 0 10px rgba(78, 240, 210, 1))
          drop-shadow(0 0 20px rgba(78, 240, 210, 0.8))
          drop-shadow(0 0 30px rgba(78, 240, 210, 0.6));
  transform: translateY(-2px);
}

.qr-placeholder p {
  margin: 0;
  line-height: 1.4;
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  padding: 14px 16px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-info a {
  color: var(--primary);
}

.form {
  display: grid;
  gap: 12px;
  background: var(--panel-strong);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form button {
  border: none;
  cursor: pointer;
}

.form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.form-message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-message.success {
  background: rgba(78, 240, 210, 0.15);
  border: 1px solid rgba(78, 240, 210, 0.4);
  color: var(--primary);
}

.form-message.error {
  background: rgba(255, 87, 87, 0.15);
  border: 1px solid rgba(255, 87, 87, 0.4);
  color: #ff5757;
}

.footer {
  margin: 50px auto 30px;
  max-width: 1200px;
  padding: 0 24px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1 1 300px;
  min-width: 0;
}

.footer-right {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: row;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.footer-section p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

.footer-section a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--text);
}

.footer .logo {
  color: var(--text);
  margin-bottom: 8px;
}

.footer-left p {
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.footer-copyright {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

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

/* Мобильная версия футера */
@media (max-width: 768px) {
  .footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
  }

  .footer .logo {
    order: 1;
    flex: 0 0 auto;
  }

  .footer-links {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .footer p {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    margin-top: 8px;
  }
}

@media (max-width: 960px) {
  .top-bar { padding: 14px 18px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 18px; background: rgba(8, 9, 16, 0.95); }
  .nav.open { display: flex; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; }
  .panel.split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .hero-features { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .top-actions { 
    display: none; 
  }
  .top-actions .lang-switcher {
    display: flex;
  }
  .floating-card {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-card {
    display: none;
  }
}

@media (max-width: 640px) {
  main { padding: 18px 16px 60px; }
  h1 { font-size: 32px; }
  .top-bar { position: fixed; width: 100%; }
  body { padding-top: 80px; }
  .floating-card {
    bottom: 20px;
  }
  
  .hero-features {
    display: none;
  }
  
  .qr-placeholder {
    display: none;
  }
  
  .demo-mobile-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
  
  #demo .cta-row {
    display: none;
  }
}

/* Кнопка "Наверх" - только для мобильных устройств */
.scroll-to-top {
  display: none;
}

@media (max-width: 768px) {
  .scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    border: 1px solid var(--border);
    color: #0a0b12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(78, 240, 210, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
  }

  .scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(78, 240, 210, 0.35);
  }

  .scroll-to-top:active {
    transform: translateY(0);
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .scroll-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

/* Модальное окно политики конфиденциальности */
.privacy-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s;
}

.privacy-link:hover {
  opacity: 0.8;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--panel);
  color: var(--primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--text);
  line-height: 1.6;
  /* Кастомный скроллбар */
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 240, 210, 0.3) transparent;
}

/* Стилизация скроллбара для WebKit браузеров (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(78, 240, 210, 0.3);
  border-radius: 3px;
  transition: background 0.2s;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 240, 210, 0.5);
}

.modal-body h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 12px 0;
  color: var(--muted);
}

.modal-body ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted);
}

.modal-body li {
  margin: 8px 0;
}

.modal-body a {
  color: var(--primary);
  text-decoration: underline;
}

.modal-body a:hover {
  opacity: 0.8;
}

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

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

@media (max-width: 768px) {
  .modal.show {
    padding: 10px;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-header {
    padding: 18px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-body h3 {
    font-size: 16px;
  }
}

