/* ==========================================================================
   АКАДЕМИЧЕСКИЙ СТИЛЬ С ЗАСЕЧКАМИ (SERIF)
   Все шрифты — с засечками (EB Garamond / Georgia / Times New Roman).
   ========================================================================== */

@import url('/fonts/eb-garamond.css');

:root {
  /* Тёмная тема (по умолчанию) */
  --bg-color: #121316;
  --surface-color: #1b1d24;
  --surface-elevated: #252832;
  --border-color: #343844;
  --border-active: #e2be79;

  --text-primary: #f7f4ee;
  --text-secondary: #c9c5ba;
  --text-muted: #9e9a8f;

  --accent-gold: #e2be79;
  --accent-gold-soft: rgba(226, 190, 121, 0.14);
  --btn-text-color: #121316;
  --error-color: #e87680;

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

[data-theme="light"] {
  /* Мягкая, благородная книжная палитра без ослепительной белизны и нагрузки на глаза */
  --bg-color: #f3efe6;
  --surface-color: #fbf9f4;
  --surface-elevated: #eae4d7;
  --border-color: #d7d0c0;
  --border-active: #947228;

  --text-primary: #2a251d;
  --text-secondary: #574f41;
  --text-muted: #7e7464;

  --accent-gold: #947228;
  --accent-gold-soft: rgba(148, 114, 40, 0.1);
  --btn-text-color: #ffffff;
  --error-color: #b33838;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif) !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ПЛАШКА РЕЖИМА АДМИНИСТРАТОРА (ТОЛЬКО ДЛЯ АДМИНА) */
.admin-preview-bar {
  background-color: var(--surface-elevated);
  border-bottom: 1px solid var(--accent-gold);
  padding: 10px 24px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ribbon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  padding: 5px 12px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ribbon-btn:hover {
  background-color: var(--accent-gold-soft);
  border-color: var(--accent-gold);
}

/* ШАПКА */
.top-bar {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 12px;
  display: flex;
  justify-content: flex-end;
}

.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-primary);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  user-select: none;
}

.theme-button:hover {
  transform: translateY(-1px) scale(1.06);
  border-color: var(--accent-gold);
}

[data-theme="dark"] .theme-button {
  background-color: #1e2027;
  border: 1px solid #363a45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* В светлой теме кнопка с месяцем (🌙): контрастный тёмно-ночной фон (#1a1e28), чтобы золотой месяц 🌙 сиял чётко и ярко и не сливался с фоном страницы */
[data-theme="light"] .theme-button {
  background-color: #1a1e28 !important;
  border: 1.5px solid #3c4456 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
  color: #ffd166 !important;
}

[data-theme="light"] .theme-button:hover {
  background-color: #262c3b !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) scale(1.06);
}

/* ГЛАВНЫЙ КОНТЕЙНЕР */
.main-wrapper {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px 80px;
}

/* ВВОДНЫЙ ТЕКСТ ОБ АНОНИМНОСТИ (ТОЛЬКО НА СТРАНИЦЕ 1) */
.anonymous-note {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.anonymous-note p {
  margin-bottom: 8px;
}

.anonymous-note .comfort-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
}

/* ПРОГРЕСС */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 34px;
}

.progress-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-steps-count {
  display: none !important;
}

/* ВОПРОСЫ */
.question-block {
  margin-bottom: 38px;
}

.question-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.45;
}

.question-hint {
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ПОЛЯ ВВОДА */
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 20px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
  overflow-y: hidden;
  box-sizing: border-box;
}

#field-age {
  max-width: 320px;
}

@media (max-width: 600px) {
  #field-age {
    max-width: 100%;
  }
}

/* ОШИБКА ЗАПОЛНЕНИЯ */
.input-error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 1px var(--error-color) !important;
}

.error-banner {
  background-color: rgba(224, 108, 117, 0.12);
  border: 1px solid var(--error-color);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 18px;
  display: none;
}

/* ВАРИАНТЫ ВЫБОРА */
.choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 20px;
  line-height: 1.5;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.choice-item:hover {
  background-color: var(--surface-elevated);
  border-color: var(--text-muted);
}

.choice-item input[type="radio"] {
  margin-right: 16px;
  width: 22px;
  height: 22px;
  accent-color: var(--accent-gold);
}

.choice-item.selected {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-soft);
}

/* ШКАЛА ОЦЕНКИ 0-10 БЕЗ ПРЕДУСТАНОВЛЕННОГО ЗНАЧЕНИЯ */
.rating-scale {
  margin: 18px 0 22px;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.rating-btn {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 21px;
  font-weight: 600;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  font-family: var(--font-serif) !important;
  box-sizing: border-box;
}

.rating-btn input {
  display: none;
}

.rating-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--surface-elevated);
  transform: translateY(-1px);
}

.rating-btn.selected {
  background-color: var(--accent-gold) !important;
  color: #121316 !important;
  border-color: var(--accent-gold) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(216, 174, 94, 0.4);
  transform: scale(1.05);
}

[data-theme="light"] .rating-btn.selected {
  color: #ffffff !important;
  background-color: #8b6824 !important;
  border-color: #8b6824 !important;
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-muted);
  padding: 0 4px;
}

.rating-status {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 10px;
  min-height: 24px;
}

/* КНОПКИ ДЕЙСТВИЙ */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.btn-submit,
.btn-forward {
  background-color: var(--accent-gold);
  color: var(--btn-text-color);
  border: none;
  padding: 14px 34px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover,
.btn-forward:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-backward {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 26px;
  font-size: 19px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-backward:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* БЛАГОТВОРИТЕЛЬНОСТЬ (ФИНАЛ) */
.charity-hero {
  margin-bottom: 28px;
}

.charity-main-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.charity-lead-text {
  font-size: 21px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.charity-promise-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.65;
}

.charity-promise-box strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.charity-promise-sub {
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 6px;
}

.charity-summary-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 22px 28px;
  margin-bottom: 32px;
  gap: 18px;
  flex-wrap: wrap;
}

.charity-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-serif) !important;
  line-height: 1.1;
}

.stat-label {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.charity-cards-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 36px;
}

.charity-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
}

.charity-card:hover {
  border-color: var(--accent-gold);
}

.charity-card.is-voted {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-soft);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.charity-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.charity-logo {
  height: 54px;
  max-width: 110px;
  object-fit: contain;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

[data-theme="dark"] .charity-logo {
  background-color: #191b22;
  border: 1px solid #333846;
}

/* На светлой версии: у ВСЕХ трёх логотипов единый красивый желтовато-песочный фон,
   чтобы 3-й логотип (белый логотип Велес) отлично читался, и все 3 логотипа выглядели одинаково и гармонично */
[data-theme="light"] .charity-logo,
[data-theme="light"] .charity-logo.charity-logo-veles,
[data-theme="light"] img.charity-logo[src*="veles" i],
[data-theme="light"] img.charity-logo[src*="logo-veles"] {
  background-color: #d8c29b !important;
  border: 1px solid #bda57b !important;
  box-shadow: 0 1px 4px rgba(60, 48, 30, 0.1) !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
}

.charity-title-group {
  flex: 1;
  min-width: 240px;
}

.charity-name {
  font-size: 25px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.charity-tagline {
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ФОТОГАЛЕРЕЯ ФОНДА */
.charity-photos-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.charity-photo-img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.charity-photo-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
}

.charity-photo-img:hover {
  transform: scale(1.02);
}

.charity-desc {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.charity-links-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 18px;
}

.charity-website-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.charity-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e06c75;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.charity-video-note {
  font-size: 17px;
  font-style: italic;
  color: var(--text-muted);
  width: 100%;
  margin-top: -6px;
  margin-bottom: 8px;
}

.charity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 14px;
}

.charity-impact-badge {
  font-size: 18px;
  color: var(--text-secondary);
}

.charity-impact-badge strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.btn-vote {
  background-color: var(--accent-gold);
  color: var(--btn-text-color);
  border: none;
  padding: 12px 26px;
  font-size: 19px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vote:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-vote:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.voted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ee787;
  font-weight: 600;
  font-size: 19px;
}

[data-theme="light"] .voted-badge {
  color: #2b7a36;
}

.vote-success-box {
  background-color: var(--surface-color);
  border: 1px solid var(--accent-gold);
  padding: 28px;
  border-radius: 4px;
  text-align: center;
  margin-top: 28px;
}

/* ПОВТОРНЫЙ ЗАХОД */
.repeat-notice {
  background-color: var(--surface-color);
  border: 1px solid var(--accent-gold);
  border-left: 4px solid var(--accent-gold);
  padding: 18px 24px;
  margin-bottom: 26px;
  border-radius: 4px;
}

.repeat-notice p {
  font-size: 19px;
  color: var(--text-secondary);
}

/* БЛОК «ПОДЕЛИТЕСЬ ОПРОСОМ» */
.share-box {
  margin-top: 40px;
  padding: 28px 24px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.share-btn-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
}

.btn-copy-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--surface-elevated);
  border: 1.5px solid var(--accent-gold);
  color: var(--text-primary);
  padding: 0 20px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-serif) !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  white-space: nowrap;
  text-align: center;
  transform: none !important;
}

.btn-copy-share:hover {
  background-color: var(--accent-gold-soft);
  color: var(--accent-gold);
  transform: none !important;
}

.btn-copy-share:active {
  transform: none !important;
}

.btn-copy-share.copied-active {
  border-color: #7ee787 !important;
  color: #7ee787 !important;
  background-color: rgba(126, 231, 135, 0.12) !important;
  transform: none !important;
}

[data-theme="light"] .btn-copy-share.copied-active {
  border-color: #1e7e34 !important;
  color: #1e7e34 !important;
  background-color: rgba(30, 126, 52, 0.09) !important;
}

@media (max-width: 600px) {
  .share-box {
    padding: 22px 14px;
  }
  .share-btn-wrapper {
    max-width: 100%;
  }
  .btn-copy-share {
    font-size: 16px;
    padding: 0 16px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }
}

/* ==========================================================================
   ПЕРВАЯ ГЛАВНАЯ СТРАНИЦА (WELCOME HERO)
   ========================================================================== */
.welcome-hero {
  max-width: 740px;
  margin: 20px auto 40px;
  text-align: center;
  padding: 0 10px;
}

.welcome-badge {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.welcome-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-gold);
  margin-bottom: 30px;
}

.welcome-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 34px 32px;
  text-align: left;
  line-height: 1.7;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
  margin-bottom: 35px;
}

.welcome-paragraph {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.welcome-paragraph:last-child {
  margin-bottom: 0;
}

.welcome-intro {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
}

.welcome-anon {
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: 20px;
  font-size: 18px;
}

.welcome-cta-wrap {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 20px;
}

/* Большая кнопка строго по центру с изящным отражением цвета по краям */
.btn-start-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 72px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #121316;
  background: linear-gradient(135deg, #ecd69f 0%, #d8ae5e 50%, #c4963e 100%);
  border: 1px solid rgba(255, 235, 185, 0.7);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-serif) !important;
  /* Изящное отражение / свечение цвета по краям */
  box-shadow: 
    0 0 0 1px rgba(226, 190, 121, 0.35),
    0 6px 20px -2px rgba(216, 174, 94, 0.45),
    0 0 35px 4px rgba(216, 174, 94, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-start-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 0 1px rgba(255, 235, 185, 0.9),
    0 10px 28px -2px rgba(216, 174, 94, 0.65),
    0 0 50px 8px rgba(216, 174, 94, 0.55);
  filter: brightness(1.04);
}

.btn-start-hero:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 
    0 0 0 1px rgba(216, 174, 94, 0.5),
    0 4px 14px rgba(216, 174, 94, 0.4);
}

[data-theme="light"] .btn-start-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #a47d2d 0%, #8b6824 50%, #72531a 100%);
  border: 1px solid rgba(139, 104, 36, 0.5);
  box-shadow: 
    0 0 0 1px rgba(139, 104, 36, 0.3),
    0 6px 20px -2px rgba(139, 104, 36, 0.35),
    0 0 30px 4px rgba(139, 104, 36, 0.25);
}

[data-theme="light"] .btn-start-hero:hover {
  box-shadow: 
    0 0 0 1px rgba(139, 104, 36, 0.6),
    0 10px 28px -2px rgba(139, 104, 36, 0.5),
    0 0 45px 6px rgba(139, 104, 36, 0.35);
}

@media (max-width: 600px) {
  .welcome-title {
    font-size: 28px;
    color: var(--accent-gold);
  }
  .welcome-card {
    padding: 24px 20px;
  }
  .welcome-card p,
  .welcome-paragraph {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 16px;
  }
  .welcome-card p:last-child {
    margin-bottom: 0;
  }
  .btn-start-hero {
    width: 100%;
    padding: 16px 20px;
    font-size: 22px;
  }

  /* Скрытие шапки на приветственном экране */
  .progress-header.is-hidden,
  #progress-box.is-hidden {
    display: none !important;
  }
  /* Исправление переноса заголовка на страницах опроса */
  .progress-header:not(.is-hidden) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding-bottom: 14px !important;
  }
  .progress-steps-count {
    order: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--accent-gold) !important;
    margin-bottom: 2px !important;
  }
  .progress-title {
    order: 2 !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    width: 100% !important;
    white-space: normal !important;
    hyphens: none !important;
  }

  /* Симметричные, аккуратные кнопки на мобильном */
  .nav-buttons {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 12px !important;
    margin-top: 32px !important;
    padding-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-buttons .btn-backward,
  .nav-buttons .btn-forward,
  .nav-buttons .btn-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 6px !important;
  }
  .nav-buttons .btn-forward,
  .nav-buttons .btn-submit {
    order: 1 !important;
  }
  .nav-buttons .btn-backward {
    order: 2 !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
  }
}

.welcome-anon-note {
  font-size: 15px !important;
  font-style: italic !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  margin-top: 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--border-color) !important;
}

@media (max-width: 600px) {
  .welcome-anon-note {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}

/* Карусель платёжных документов и квитанций */
.receipts-carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.receipts-carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.carousel-nav-btn:hover {
  background-color: var(--accent-gold) !important;
  color: #121316 !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-50%) scale(1.08) !important;
}
.carousel-nav-btn:disabled {
  opacity: 0.25 !important;
  cursor: default !important;
  pointer-events: none !important;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.22s ease;
}
.carousel-dot.active {
  background: var(--accent-gold);
  width: 22px;
  border-radius: 4px;
}
