/* ==========================================================
   ПРАКТИКА 1С — СТРАНИЦА ПРОГРАММЫ (program.css)
   Версия: 4.9 (фикс: полупрозрачный ползунок, бегущая рамка ПРОФ)
   ========================================================== */

:root {
  --bg: #0f1117;
  --card: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --muted: #8b949e;
  --accent: #58a6ff;
  --success: #238636;
  --warning: #d29922;
  --danger: #da3633;
  --gold: #fbbf24;
  --gold-dark: #d97706;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --font-main: 'Inter', sans-serif;
  --font-head: 'Montserrat', sans-serif;
  --font-art: 'Great Vibes', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Декоративные цветовые пятна на тёмном фоне — только ПК */
body::before {
  content: '';
  position: fixed;
  top: -12%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(251, 191, 36, 0.08) 35%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -12%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.18) 0%, rgba(88, 166, 255, 0.06) 35%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.main-layout::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 0%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, rgba(251, 191, 36, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.right-panel::before {
  content: '';
  position: absolute;
  bottom: 12%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(65px);
  z-index: 0;
  pointer-events: none;
}

/* Поднять контент над пятнами */
.site-header, .package-header, .main-layout, .site-footer {
  position: relative;
  z-index: 1;
}

/* ШАПКА */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,17,23,0.96) 0%, rgba(15,17,23,0.88) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(160%);
  padding: 14px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.header-inner { max-width: 1140px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }
.logo-text {
  font-weight: 900; font-size: 15px; letter-spacing: 0.6px;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 20px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.nav-link:hover { color: var(--gold); }

/* ЗАГОЛОВОК */
.package-header { max-width: 1140px; margin: 0 auto; padding: 40px 28px 20px; text-align: center; }
.package-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #f0f6fc; margin-bottom: 10px; }
.package-desc { color: var(--muted); font-size: 1rem; max-width: 700px; margin: 0 auto; }

/* ПРЕДУПРЕЖДЕНИЕ БД */
.db-warning {
  max-width: 1140px; margin: 0 auto 20px; padding: 14px 18px;
  background: rgba(251,191,36,0.04); border: 1px solid rgba(251,191,36,0.12);
  border-radius: 10px;
  color: var(--muted); font-size: 0.88rem; line-height: 1.6;
}
.db-warning b { color: var(--warning); }
.db-warning code { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

/* СЕТКА */
.main-layout {
  max-width: 1140px; margin: 0 auto; padding: 0 28px 40px;
  display: grid; grid-template-columns: 380px 1fr; gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 20px; }
}

/* ЛЕВАЯ ПАНЕЛЬ */
.left-panel {
  display: flex; flex-direction: column;
  min-height: 0;
}
.left-panel > h3 {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0; color: #f0f6fc;
  flex-shrink: 0;
  text-align: center;
}

#package-form {
  display: flex; flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pkg-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pkg-list::-webkit-scrollbar { display: none; }

.pkg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); cursor: pointer; transition: all 0.25s;
  height: 56px;
  overflow: hidden;
}
.pkg-item:hover { border-color: var(--gold); background: rgba(251,191,36,0.04); transform: translateX(4px); }
.pkg-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.pkg-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; color: #0a0c10; font-size: 1rem; flex-shrink: 0; }
.pkg-text { flex: 1; min-width: 0; }
.pkg-text h4 {
  font-size: 0.82rem;
  color: #f0f6fc;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.pkg-text p { display: none; }
.pkg-price-tag { font-size: 0.88rem; font-weight: 600; color: var(--gold); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }

.price-old { text-decoration: line-through; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.price-free { color: var(--success); font-size: 0.85rem; font-weight: 800; }

.demo-badge-inline { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(34,197,94,0.15); color: #22c55e; text-transform: uppercase; letter-spacing: 0.5px; }
.demo-link-inline { font-size: 0.72rem; color: var(--accent); text-decoration: none; font-weight: 600; margin-left: 4px; }
.demo-link-inline:hover { text-decoration: underline; }

.left-total {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}
.left-total-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.left-total-sum { font-size: 1.5rem; font-weight: 600; color: var(--gold); font-family: var(--font-head); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* ПРАВАЯ ПАНЕЛЬ */
.right-panel {
  display: flex; flex-direction: column;
  gap: 0;
  min-height: 0;
}

.right-panel-title-spacer {
  visibility: hidden;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  flex-shrink: 0;
  text-align: center;
}

/* Аудио */
.audio-player-wrap {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  flex-shrink: 0;
  margin-bottom: 20px;
  border: none;
  overflow: hidden;
}
.audio-player-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(90deg,
    rgba(251,191,36,0.2) 0%,
    rgba(251,191,36,0.6) 25%,
    rgba(255,255,255,0.9) 50%,
    rgba(251,191,36,0.6) 75%,
    rgba(251,191,36,0.2) 100%
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: goldRun 2.5s linear infinite;
  pointer-events: none;
}
@keyframes goldRun {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.audio-player { display: flex; align-items: center; gap: 14px; }
.audio-play-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(217,119,6,0.1)); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.3s; font-size: 0.9rem; }
.audio-play-btn:hover { transform: scale(1.1); background: linear-gradient(135deg, rgba(251,191,36,0.3), rgba(217,119,6,0.2)); }
.audio-track { flex: 1; height: 5px; background: rgba(251,191,36,0.06); border-radius: 3px; position: relative; cursor: pointer; overflow: hidden; }
.audio-progress { height: 100%; width: 0%; background: linear-gradient(90deg, rgba(251,191,36,0.7), rgba(217,119,6,0.5)); border-radius: 3px; transition: width 0.1s linear; }
.audio-time { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; font-weight: 600; }
.audio-label { font-size: 0.72rem; color: var(--gold); opacity: 0.7; margin-left: 56px; margin-top: 8px; letter-spacing: 0.4px; font-weight: 600; }

/* Перо — компактно, без огромных отступов */
/* Центральный блок — перо + афоризмы между аудио и карточками */
.center-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  margin: 20px 0;
}

.pen-float { text-align: center; animation: penFloat 4s ease-in-out infinite; flex-shrink: 0; margin: 0 0 20px 0; }
.pen-float svg { width: 52px; height: 52px; color: var(--gold); opacity: 0.7; }
@keyframes penFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

/* Афоризмы — по центру, Caveat, компактно */
.quotes-wrap {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 16px 0;
  margin-bottom: 20px;
}
.quote-item { position: relative; text-align: center; max-width: 420px; }
.quote-item::before {
  content: """;
  display: block;
  font-family: var(--font-art);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 2px;
}
.quote-item blockquote {
  font-family: var(--font-art);
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(201, 209, 217, 0.85);
  line-height: 1.55;
  margin-bottom: 10px;
  font-style: italic;
}
.quote-item cite {
  display: block;
  color: rgba(139, 148, 158, 0.6);
  font-size: 0.8rem;
  font-family: var(--font-main);
  font-style: normal;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Карточки цен — стиль как на скриншоте */
.right-bottom-block { margin-top: auto; flex-shrink: 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: linear-gradient(145deg, #1a1d26, #13151c);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 16px;
  padding: 22px 16px 18px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(251,191,36,0.1), 0 8px 32px rgba(0,0,0,0.4);
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,191,36,0.6);
  box-shadow: 0 0 16px rgba(251,191,36,0.12), 0 8px 32px rgba(0,0,0,0.5);
}
.pricing-card.featured {
  position: relative;
  background: linear-gradient(145deg, #1e1212, #13151c);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(90deg,
    rgba(239,68,68,0.2) 0%,
    rgba(239,68,68,0.6) 25%,
    rgba(255,200,200,0.9) 50%,
    rgba(239,68,68,0.6) 75%,
    rgba(239,68,68,0.2) 100%
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: redRun 2.5s linear infinite;
  pointer-events: none;
}
@keyframes redRun {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Треугольная плашка ГОД/ХИТ */
.pricing-stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
}
.pricing-stamp::before {
  content: attr(data-text);
  position: absolute;
  top: 14px;
  right: -22px;
  width: 100px;
  padding: 4px 0;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0a0c10;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: rotate(45deg);
  text-align: center;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.pricing-card.featured .pricing-stamp::before {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.pricing-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f6fc;
  letter-spacing: 0.3px;
}
.pricing-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
  flex: 1;
}
.pricing-price {
  font-size: 1.7rem;
  font-weight: 600;
  color: #f0f6fc;
  font-family: var(--font-head);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 3px;
  color: var(--muted);
}

/* Кнопки карточек — массивные жёлтые */
.pricing-card .btn-buy {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0c10;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-head);
  letter-spacing: 0.2px;
  box-shadow: 0 3px 12px rgba(251,191,36,0.25);
}
.pricing-card .btn-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 5px 18px rgba(251,191,36,0.4);
}
.pricing-card.featured .btn-buy {
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  color: #fff;
  box-shadow: 0 3px 14px rgba(239,68,68,0.35);
}
.pricing-card.featured .btn-buy:hover {
  box-shadow: 0 5px 20px rgba(239,68,68,0.5);
}

/* КНОПКИ */
.btn-buy, .btn-buy-full, .btn-pay, .btn-lk, .btn-sms, .btn-demo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: none;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.25s; font-family: var(--font-head);
  min-height: 48px;
}
.btn-buy, .btn-buy-full {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0c10; width: 100%;
}
.btn-buy:hover, .btn-buy-full:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-pay { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #0a0c10; width: 100%; font-size: 1rem; padding: 14px; }
.btn-pay:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }
.btn-lk { background: var(--card); border: 1.5px solid var(--gold); color: var(--gold); margin-top: 14px; }
.btn-lk:hover { background: var(--gold); color: #0a0c10; }
.btn-sms { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; min-height: auto; }
.btn-sms:hover { background: var(--gold); color: #0a0c10; }
.btn-sms:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-demo { background: rgba(34,197,94,0.1); border: 1.5px solid var(--success); color: var(--success); width: 100%; }
.btn-demo:hover { background: var(--success); color: #fff; }

/* ПОПАПЫ */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.popup-window { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); animation: slideUp 0.3s ease; }
.popup-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.popup-title { font-family: var(--font-head); font-size: 1.1rem; color: #f0f6fc; display: flex; align-items: center; }
.popup-title-icon { margin-right: 10px; color: var(--accent); }
.popup-close-btn { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; transition: color 0.2s; }
.popup-close-btn:hover { color: var(--danger); }
.popup-body { padding: 20px; }
.popup-desc { margin-bottom: 14px; color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.popup-warning-box { background: rgba(251,191,36,0.04); border: 1px solid rgba(251,191,36,0.12); border-radius: 10px; padding: 12px 14px; }
.popup-warning-icon { color: #ef4444; margin-right: 8px; }
.popup-price-wrap { margin-top: 18px; text-align: center; }
.popup-price-lg { font-size: 1.4rem; margin-bottom: 14px; font-variant-numeric: tabular-nums; }

.payment-window { max-width: 480px; }

/* ФОРМА ОПЛАТЫ */
.payment-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"] {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.phone-row { display: flex; gap: 10px; }
.phone-row input { flex: 1; }
.sms-timer { font-size: 0.75rem; color: var(--muted); margin-top: 6px; display: none; }
.sms-timer.visible { display: block; }
.code-inputs { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.code-inputs input { width: 42px; height: 48px; text-align: center; font-size: 1.2rem; font-weight: 700; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.code-inputs input:focus { outline: none; border-color: var(--gold); }
.code-status { font-size: 0.8rem; text-align: center; margin-bottom: 10px; min-height: 20px; }
.code-status.ok { color: var(--success); }
.code-status.err { color: var(--danger); }
.btn-verify { margin-bottom: 12px; }
.form-agree-text { color: #9ca3af; font-size: 0.82rem; margin-bottom: 10px; line-height: 1.5; }
.form-agree-text a { color: var(--accent); text-decoration: none; }
.form-agree-text a:hover { text-decoration: underline; }
.checkbox-group { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text); }
.checkbox-group input { width: 18px; height: 18px; accent-color: var(--gold); }

/* УСПЕШНАЯ ОПЛАТА */
.hidden { display: none !important; }
.success-message { text-align: center; padding: 30px 20px; }
.success-message i { font-size: 3rem; color: var(--success); margin-bottom: 16px; }
.success-message h3 { font-family: var(--font-head); font-size: 1.3rem; color: #f0f6fc; margin-bottom: 10px; }
.success-message p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ФУТЕР */
.site-footer { padding: 40px 0 24px; background: rgba(15,17,23,0.5); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-title { font-family: var(--font-head); font-size: 0.95rem; color: #f0f6fc; margin-bottom: 12px; font-weight: 700; }
.footer-text { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-email { color: var(--gold-dark); text-decoration: none; font-weight: 600; }
.footer-email:hover { text-decoration: underline; }
.footer-bottom { text-align: center; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }

/* МОБИЛЬНАЯ */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 20px; }
  .header-inner { padding: 0 16px; }
  .package-header { padding: 24px 16px 16px; }
  .package-title { font-size: 1.5rem; }
  .right-panel { gap: 16px; }
  .popup-window { max-width: calc(100vw - 32px); margin: 0 16px; }
  .payment-window { max-width: calc(100vw - 32px); }
  .quotes-wrap { gap: 20px; }
  .quote-item blockquote { font-size: 1.25rem; }
  .pen-float { margin: 16px 0; }
  .pen-float svg { width: 36px; height: 36px; }
  .right-panel-title-spacer { display: none; }
}
@media (max-width: 600px) {
  .pkg-item { flex-wrap: wrap; padding: 12px; }
  .pkg-icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .pkg-text { width: 100%; order: 3; margin-top: 8px; }
  .pkg-price-tag { order: 2; margin-left: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-price { font-size: 1.5rem; }
  .footer-row { grid-template-columns: 1fr; gap: 24px; }
  .quote-item blockquote { font-size: 1.15rem; }
  .audio-player-wrap { padding: 12px; }
  .audio-play-btn { width: 36px; height: 36px; }
  .code-inputs input { width: 36px; height: 42px; font-size: 1rem; }
  .btn-buy, .btn-buy-full, .btn-pay, .btn-lk, .btn-sms, .btn-demo { padding: 10px 18px; font-size: 0.85rem; min-height: 44px; }
}
@media (max-width: 400px) {
  .package-title { font-size: 1.2rem; }
  .logo-text { font-size: 12px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 0.78rem; }
  .left-total-sum { font-size: 1.4rem; }
}

/* МОБИЛЬНЫЕ ФИКСЫ */
@media (max-width: 900px) {
  .package-title { font-size: 1.35rem; word-wrap: break-word; }
  .left-panel > h3 { text-align: left; }
  .center-block { margin: 16px 0; }
  .quote-item blockquote { font-size: 1.4rem; }
  .pen-float svg { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  .package-title { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .package-title { font-size: 1rem; }
}

/* АНИМАЦИИ */
@keyframes slideUp { from { opacity:0; transform: translateY(20px);} to { opacity:1; transform: translateY(0);} }

/* ==========================================================
   COMPACT-ФОРМА ДОКУПКИ (для авторизованных клиентов)
   ========================================================== */

.compact-form {
  padding: 20px;
}

.compact-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.compact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.compact-details {
  flex: 1;
  min-width: 0;
}

.compact-name {
  font-weight: 700;
  color: #f0f6fc;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.compact-email,
.compact-phone {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.compact-notice {
  background: rgba(35,134,54,0.08);
  border: 1px solid rgba(35,134,54,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #3fb950;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-notice::before {
  content: "✓";
  font-weight: 700;
  font-size: 1rem;
}

.form-agree-text.compact {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}

#btn-repurchase {
  width: 100%;
  margin-bottom: 10px;
}

#compact-form-content.hidden {
  display: none !important;
}


/* Кнопка "Выйти и заполнить заново" */
.compact-form .btn-ghost,
#compact-form-content .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compact-form .btn-ghost:hover,
#compact-form-content .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(88,166,255,0.05);
}
