/* app.css — Все стили Telegram Mini App
   Банкротство физических лиц */

/* ─── CSS-ПЕРЕМЕННЫЕ ────────────────────────────────────────── */
:root {
  /* Цвета из темы Telegram (фолбеки для браузера) */
  --bg:       var(--tg-theme-bg-color,            #F7F8FA);
  --bg2:      var(--tg-theme-secondary-bg-color,  #EDEBE4);
  --text:     var(--tg-theme-text-color,           #0D1117);
  --hint:     var(--tg-theme-hint-color,           #6B7280);
  --link:     var(--tg-theme-link-color,           #2AABEE);
  --btn-bg:   var(--tg-theme-button-color,         #2AABEE);
  --btn-text: var(--tg-theme-button-text-color,    #ffffff);

  /* Новая дизайн-система */
  --navy:       #0C243D;
  --navy-light: rgba(12, 36, 61, 0.08);
  --gold:       #EEC373;
  --gold-text:  #1C1000;
  --card-cream: #F1EFE8;
  --card-green: #E8F5EF;
  --card-bg:    #FFFFFF;
  --accent:     #EEC373;

  /* Фиксированные цвета */
  --success:  #34C759;
  --warning:  #FF9500;
  --error:    #FF3B30;
  --border:   rgba(0, 0, 0, 0.08);

  /* Геометрия */
  --r:        12px;
  --r-sm:     8px;
  --r-pill:   20px;
  --gap:      16px;
  --tab-h:    56px;
  --btn-h:    50px;
}

body.dark {
  --border:   rgba(255, 255, 255, 0.08);
  --card-bg:  #1E2228;
  --card-cream: #1E2025;
  --card-green: #1A2B1E;
  --navy-light: rgba(238, 195, 115, 0.08);
}

/* ─── УТИЛИТЫ ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── СБРОС ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  height: var(--tg-viewport-stable-height, 100%);
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button  { cursor: pointer; border: none; background: none; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
input   { font: inherit; color: inherit; }
a       { color: var(--link); text-decoration: none; }
ul, ol  { list-style: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── SVG ИКОНКИ ─────────────────────────────────────────── */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}
.icon-sm { width: 18px !important; height: 18px !important; }

.greeting-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 4px;
  stroke: #F59E0B;
  display: inline-block;
}

/* ─── КРУЖКИ ДЛЯ ИКОНОК ──────────────────────────────────── */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle .icon { width: 20px; height: 20px; }

.icon-circle.icon-circle-sm            { width: 36px; height: 36px; border-radius: 10px; }
.icon-circle.icon-circle-sm .icon      { width: 17px; height: 17px; }

.icon-circle-blue  { background: rgba(42, 171, 238, 0.12); color: #2AABEE; }
.icon-circle-navy  { background: var(--navy-light);         color: var(--navy); }
.icon-circle-gold  { background: rgba(238, 195, 115, 0.18); color: #9E6A10; }
.icon-circle-green { background: rgba(52, 199, 89, 0.14);   color: #239B3E; }

body.dark .icon-circle-navy { background: rgba(238,195,115,0.08); color: var(--gold); }

/* ─── КОНТЕЙНЕР ПРИЛОЖЕНИЯ ──────────────────────────────── */
#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ─── ЭКРАНЫ ─────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  padding-bottom: 80px;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.screen.slide-out {
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
}
.screen.has-tabbar {
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
}

.screen-body { padding: var(--gap); }
.screen-body.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px var(--gap);
  min-height: 70vh;
  justify-content: center;
}
.screen-header {
  padding: 18px var(--gap) 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

/* ─── ТИПОГРАФИКА ─────────────────────────────────────────── */
.screen-title { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.screen-sub   { font-size: 15px; color: var(--hint); line-height: 1.5; margin-bottom: 20px; }
.screen-sub-sm { font-size: 13px; color: var(--hint); margin-top: 4px; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--hint);
  margin-bottom: 10px; margin-top: 20px;
}

/* ─── СПЛЭШ ──────────────────────────────────────────────── */
#screen-splash {
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-inner {
  text-align: center;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.splash-icon {
  width: 72px;
  height: 72px;
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.dark .splash-icon { stroke: var(--gold); }
.splash-name   { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.splash-sub    { font-size: 14px; color: var(--hint); }

/* ─── WELCOME ─────────────────────────────────────────────── */
#screen-welcome .screen-body { padding-top: 0; }

/* ─── ВИЗИТКА ЭКСПЕРТА — полная ширина ──────────────────── */
.welcome-lawyer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Градиент даёт объём, убирает плоскость */
  background: linear-gradient(145deg, #091E33 0%, #0C243D 55%, #0E2B48 100%);
  padding: 20px var(--gap) 20px;
  margin: 0 calc(-1 * var(--gap)) 28px;
  align-items: flex-start;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(12, 36, 61, 0.3);
}

/* Тонкая золотая черта по верхнему краю */
.welcome-lawyer-card::before {
  content: '';
  position: absolute;
  top: 0; left: var(--gap); right: var(--gap);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(238,195,115,0.9), transparent);
}

/* Рассеянный световой акцент в правом углу */
.welcome-lawyer-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(238,195,115,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Фото — квадрат 120×120px, золотая рамка */
.welcome-lawyer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 10%;
  flex-shrink: 0;
  border: 2.5px solid var(--gold);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.45),
    0 0 0 5px rgba(238,195,115,0.08);
}

.welcome-lawyer-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

/* Специализация — мелкий капс, приглушённый золотой */
.welcome-lawyer-role {
  font-size: 10px;
  color: rgba(238, 195, 115, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Имя — крупный белый, главный акцент */
.welcome-lawyer-name {
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 11px;
}

/* Бейджи доверия */
.lawyer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.trust-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(238, 195, 115, 0.1);
  border: 1px solid rgba(238, 195, 115, 0.22);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  letter-spacing: 0.2px;
}

/* Приветствие и заголовок */
.welcome-user-greeting {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 4px 0 10px;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 8px;
}
.welcome-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Факт-карточки */
.fact-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-cream);
  border-radius: var(--r);
  padding: 14px var(--gap);
  font-size: 14px;
  line-height: 1.5;
}
.fact-card.fact-housing {
  background: var(--card-green);
}

/* Баннер «продолжить квиз» */
.resume-banner {
  margin-top: 20px;
  background: rgba(42, 171, 238, 0.08);
  border-radius: var(--r);
  padding: 14px var(--gap);
  font-size: 14px;
  border: 1px solid rgba(42, 171, 238, 0.2);
}
.resume-btns   { display: flex; gap: 16px; margin-top: 10px; }
.btn-text      { font-size: 14px; font-weight: 600; color: var(--link); }
.btn-text.muted { color: var(--hint); }

/* ─── ОФФЕР-МОДАЛКА ─────────────────────────────────────── */
.offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: offer-fade-in 0.3s ease;
}
.offer-overlay.hidden { display: none !important; }

@keyframes offer-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes offer-fade-out { from { opacity: 1; } to { opacity: 0; } }

.offer-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 24px 20px 20px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  animation: offer-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
@keyframes offer-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.offer-emoji  { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.offer-title  { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; color: var(--text); }
.offer-sub    { font-size: 13px; color: var(--hint); line-height: 1.5; margin-bottom: 14px; }

.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.offer-bullets li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--card-cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.offer-bullets li::before {
  content: '✓';
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.btn-offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  background: var(--navy);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none !important;
  margin-bottom: 12px;
  transition: opacity 0.15s;
  box-sizing: border-box;
}
.btn-offer-cta:active { opacity: 0.85; }

.btn-offer-skip {
  background: none;
  border: none;
  color: var(--hint);
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
}

/* ─── ГЛАВНАЯ (HOME) ─────────────────────────────────────── */
.home-greeting { font-size: 18px; font-weight: 600; }
.home-sub      { font-size: 13px; color: var(--hint); margin-top: 3px; margin-bottom: 18px; }

.lawyer-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 3px solid var(--gold);
}
.lawyer-chip-avatar {
  width: 44px; height: 59px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.lawyer-chip-info   { display: flex; flex-direction: column; gap: 2px; }
.lawyer-chip-title  { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.4px; }
.lawyer-chip-name   { font-size: 15px; font-weight: 600; color: var(--text); }

/* Hero-блок — тёмный с золотой кнопкой */
.hero-block {
  background: var(--navy);
  border-radius: var(--r);
  padding: 20px var(--gap);
  margin-bottom: 18px;
}
.hero-text {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

/* Кнопка «Пройти диагностику» — золотая */
.btn-hero {
  background: var(--gold);
  color: var(--gold-text);
  border: none;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  min-height: var(--btn-h);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.12s;
}
.btn-hero .icon { stroke: var(--gold-text); }
.btn-hero:active { opacity: 0.85; }

.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--r);
  padding: 14px var(--gap);
  width: 100%;
  text-align: left;
  min-height: 64px;
  transition: opacity 0.12s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.action-card:active { opacity: 0.65; }
.action-body  { flex: 1; min-width: 0; }
.action-title { display: block; font-size: 15px; font-weight: 600; }
.action-sub   { display: block; font-size: 12px; color: var(--hint); margin-top: 2px; }
.chevron      { font-size: 20px; color: var(--hint); flex-shrink: 0; }

/* ─── КВИЗ ──────────────────────────────────────────────── */
.quiz-topbar {
  padding: 12px var(--gap) 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
  border-bottom: 1px solid var(--border);
}
.quiz-step-label { font-size: 12px; color: var(--hint); margin-bottom: 8px; }
.progress-bar {
  height: 4px;
  background: var(--bg2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.quiz-step-inner { animation: quiz-step-in 0.2s ease; }
@keyframes quiz-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-question {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 18px;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg2);
  border-radius: var(--r);
  padding: 0 var(--gap);
  min-height: 52px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.35;
}
.quiz-option:active { opacity: 0.75; }
.quiz-option.selected {
  border-color: var(--navy);
  background: var(--navy-light);
}
.quiz-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--hint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.quiz-option.selected .quiz-check {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.quiz-hint {
  margin-top: 10px;
  border-radius: var(--r-sm);
  padding: 11px var(--gap);
  font-size: 13px;
  line-height: 1.5;
  animation: fade-down 0.2s ease;
}
.quiz-hint.success { background: rgba(52, 199, 89,  0.13); }
.quiz-hint.warning { background: rgba(255, 149, 0, 0.12); }
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── РЕЗУЛЬТАТ КВИЗА ────────────────────────────────────── */
.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.result-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  margin-bottom: 16px;
}
.result-benefit { font-size: 14px; line-height: 1.5; }
.btn-link-retake {
  font-size: 14px;
  color: var(--hint);
  padding: 10px 0;
  margin-top: 6px;
}

/* ─── КАРТОЧКА-ДИСКЛЕЙМЕР ───────────────────────────────── */
.disclaimer-card {
  background: var(--bg2);
  border-radius: var(--r-sm);
  padding: 12px var(--gap);
  font-size: 12px;
  color: var(--hint);
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
}

/* ─── КАТАЛОГ УСЛУГ ──────────────────────────────────────── */
.service-list { display: flex; flex-direction: column; gap: 10px; padding: var(--gap); }

.service-card-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--r);
  padding: 16px var(--gap);
  width: 100%;
  text-align: left;
  transition: opacity 0.12s;
  min-height: 96px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.service-card-btn:active { opacity: 0.65; }
.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.svc-body  { flex: 1; min-width: 0; }
.svc-name  { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.svc-desc  { font-size: 13px; color: var(--hint); line-height: 1.4; margin-bottom: 6px; }
.svc-tag   { font-size: 13px; font-weight: 600; color: var(--navy); }
.svc-for   { font-size: 12px; color: var(--link); margin-top: 4px; display: block; }

/* ─── КАРТОЧКА УСЛУГИ (полная) ──────────────────────────── */
.svc-full-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag-pill {
  background: var(--navy-light);
  color: var(--navy);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
}
body.dark .tag-pill { color: var(--gold); }
.checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.checklist li::before { content: '✅'; font-size: 16px; flex-shrink: 0; }
.note-card {
  background: rgba(42, 171, 238, 0.08);
  border-radius: var(--r-sm);
  padding: 12px var(--gap);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

/* ─── ФОРМА ЗАЯВКИ ───────────────────────────────────────── */
.form-group   { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hint);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  height: var(--btn-h);
  background: var(--bg2);
  border: 2px solid transparent;
  border-radius: var(--r);
  padding: 0 var(--gap);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
}
.form-input:focus       { border-color: var(--navy); }
.form-input.has-error   { border-color: var(--error); }

#btn-share {
  width: 100%;
  height: var(--btn-h);
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 0 var(--gap);
  transition: opacity 0.12s;
}
#btn-share:active { opacity: 0.7; }
#btn-share:disabled { opacity: 0.55; cursor: default; }

.time-pills { display: flex; gap: 8px; }
.pill {
  flex: 1;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--bg2);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pill.selected {
  border-color: var(--navy);
  background: var(--navy-light);
  color: var(--navy);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--navy);
}
.safety-note { font-size: 12px; color: var(--hint); text-align: center; margin-top: 10px; }
.form-error  { font-size: 13px; color: var(--error); margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* ─── ЭКРАН УСПЕХА ───────────────────────────────────────── */
.success-icon {
  font-size: 64px;
  margin-bottom: 18px;
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
  margin: 22px 0 28px;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* ─── О НАС ─────────────────────────────────────────────── */
.lawyer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  border-radius: var(--r);
  padding: 16px var(--gap);
  margin-bottom: 20px;
}
.lawyer-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lawyer-name  { display: block; font-size: 17px; font-weight: 600; color: #fff; }
.lawyer-title { display: block; font-size: 13px; color: rgba(238,195,115,0.7); margin-top: 3px; }
.lawyer-spec  { display: block; font-size: 13px; color: var(--gold); margin-top: 4px; }

.stats-row { display: flex; gap: 10px; margin-bottom: 6px; }
.stat-box {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-val  { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.stat-lbl  { display: block; font-size: 11px; color: var(--hint); line-height: 1.3; }
body.dark .stat-val { color: var(--gold); }
.stat-note { font-size: 11px; color: var(--hint); margin-bottom: 20px; }

.accordion {
  background: var(--bg2);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion summary {
  padding: 15px var(--gap);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion summary::after { content: '›'; font-size: 22px; color: var(--hint); transition: transform 0.2s; }
.accordion[open] summary::after { transform: rotate(90deg); }
.accordion-body {
  padding: 0 var(--gap) 16px;
  font-size: 14px;
  color: var(--hint);
  line-height: 1.7;
}

.about-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.about-link {
  display: block;
  padding: 14px var(--gap);
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--link);
}

.legal-warn-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--hint);
}

/* ─── ЭКРАН КОНТАКТОВ ────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--r);
  padding: 14px var(--gap);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.contact-info {
  flex: 1;
  min-width: 0;
}
.contact-number {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.contact-call-btn {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.contact-call-btn:active { opacity: 0.75; }

/* ─── ЭКРАН ОШИБКИ ───────────────────────────────────────── */
.error-icon { font-size: 54px; margin-bottom: 16px; }

/* ─── КНОПКИ ─────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--btn-h);
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: opacity 0.12s;
}
.btn:active  { opacity: 0.75; }
.btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; }

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
}
.btn-accent {
  background: var(--gold);
  color: var(--gold-text);
}

/* ─── TAB BAR ─────────────────────────────────────────────── */
#tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}
#tab-bar.hidden { display: none; }

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--tab-h);
  color: var(--hint);
  gap: 3px;
  transition: color 0.15s;
}
.tab-btn.active { color: var(--btn-bg); }
.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tab-icon .icon { width: 22px; height: 22px; }
.tab-label { font-size: 10px; font-weight: 500; }

/* ─── КНОПКА «ПОДЕЛИТЬСЯ» ────────────────────────────────── */
.btn-share-friend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r);
  margin-top: 16px;
  cursor: pointer;
  transition: opacity 0.15s;
  box-sizing: border-box;
}
.btn-share-friend .icon { stroke: var(--navy); }
.btn-share-friend:active { opacity: 0.65; }
body.dark .btn-share-friend { border-color: var(--gold); color: var(--gold); }
body.dark .btn-share-friend .icon { stroke: var(--gold); }

/* ─── MOCK-КНОПКИ (браузер) ──────────────────────────────── */
#mock-main-btn {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  height: 52px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 200;
  display: none;
  transition: opacity 0.15s;
}
#mock-main-btn.disabled { opacity: 0.45; }
#mock-back-btn {
  position: fixed;
  top: 10px; left: 10px;
  padding: 8px 14px;
  background: var(--bg2);
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
  z-index: 200;
  display: none;
}

/* ─── АНИМАЦИИ ───────────────────────────────────────────── */
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
