/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --bg: #0a0d1a;
  --surface: #151e3a;
  --border: #2a3a5a;
  --gold: #d4af37;
  --gold-border: rgba(212, 175, 55, 0.4);
  --text: #f5f1e8;
  --text-muted: #9a958a;
  --accent: #ff6b6b;
}

/* ─── Reset ──────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0d1a;
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 20px;
}

/* ─── Header ──────────────────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(21, 30, 58, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-weight: 700;
}

.logo-title {
  font-size: 13px;
  color: var(--gold);
}

.logo-subtitle {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.logo-flag {
  font-size: 11px;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  padding: 10px 12px;
  background-color: #0a0d1a;
  background-image: url('../assets/images/backgrounds/bear-mascot.jpg');
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  aspect-ratio: 1424 / 918;
  min-height: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10,13,26,0.15) 0%, rgba(10,13,26,0.4) 100%);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  position: relative;
  z-index: 2;
  height: 100%;
  align-content: start;
  padding-top: 6px;
}

.hero-left {
  display: none;
}

.hero-center {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 55%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.0;
  font-weight: 800;
}

.hero-title-main {
  display: block;
  color: var(--text);
}

.hero-title-highlight {
  display: block;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 9px;
  color: var(--gold);
  line-height: 1.3;
  max-width: 130px;
}

.btn-primary {
  background: linear-gradient(180deg, #F7CE3E 0%, #F0A80E 100%);
  color: #1a1205;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  align-self: flex-start;
  max-width: 110px;
  box-shadow: 0 4px 12px rgba(240,168,14,0.35);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-icon {
  font-size: 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-main {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
}

.btn-sub {
  font-size: 6px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.1;
}

/* ─── Quick Links ─────────────────────────────────────────────── */
.quick-links {
  padding: 10px 10px 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--gold-border);
  transition: transform 0.15s ease;
}

.quick-link-card:active {
  transform: scale(0.98);
}

.quick-link-card .ql-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.quick-link-card .ql-text {
  flex: 1;
  min-width: 0;
  margin-left: 58px;
}

.quick-link-card .ql-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.quick-link-card .ql-subtitle {
  font-size: 7px;
  color: rgba(245,241,232,0.75);
  margin-top: 2px;
  line-height: 1.2;
}

.quick-link-card .ql-arrow {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.quick-link-card.ql-blue {
  background-image: url('../assets/images/backgrounds/encyclopedia-banner.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.quick-link-card.ql-green {
  background-image: url('../assets/images/backgrounds/test-banner.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.quick-link-card.ql-purple {
  background: linear-gradient(135deg, #4c1d95 0%, #2e1a52 100%);
}

.quick-link-card.ql-gold {
  background: linear-gradient(135deg, #8a5a12 0%, #5a3a14 100%);
}

@media (min-width: 769px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .quick-links {
    padding: 16px 20px 0;
  }

  .quick-link-card {
    padding: 16px 20px;
  }

  .quick-link-card .ql-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 20px;
  }

  .quick-link-card .ql-title {
    font-size: 16px;
  }

  .quick-link-card .ql-subtitle {
    font-size: 12px;
  }
}

/* ─── Categories Grid ────────────────────────────────────────── */
.categories {
  padding: 10px;
  background: #0a0d1a;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.category-card {
  background-color: rgba(21, 30, 58, 0.8);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1.1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.category-card:active {
  transform: scale(0.97);
  border-color: var(--gold);
}

.card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0) 100%);
  border-radius: 10px;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 6px;
}

.category-title {
  font-size: 7.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.category-desc {
  font-size: 6px;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
  display: none;
}

.category-arrow {
  display: none;
}

/* ─── Bear CTA Banner ─────────────────────────────────────────── */
.bear-banner-section {
  padding: 10px 0 0;
}

.bear-banner {
  position: relative;
  background: linear-gradient(100deg, #f5c518 0%, #f5c518 45%, #d99405 100%);
  border-radius: 0;
  padding: 14px 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-border);
}

.bear-banner-text {
  max-width: 58%;
  z-index: 2;
  position: relative;
}

.bear-banner-main {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1205;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.bear-banner-sub {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #3a2a08;
  margin-top: 6px;
}

.bear-banner-img {
  position: absolute;
  right: 4px;
  bottom: 0;
  height: auto;
  width: 38%;
  max-width: 150px;
  z-index: 2;
  filter: drop-shadow(-3px 2px 6px rgba(0,0,0,0.3));
}

@media (min-width: 769px) {
  .bear-banner-section {
    padding: 16px 0 0;
  }
  .bear-banner {
    padding: 20px 28px;
    min-height: 150px;
  }
  .bear-banner-main {
    font-size: 22px;
  }
  .bear-banner-sub {
    font-size: 15px;
    margin-top: 10px;
  }
  .bear-banner-img {
    width: 32%;
    max-width: 230px;
    right: 20px;
  }
}

/* ─── Stories (Реальные заработки) ────────────────────────────── */
.stories-section {
  padding: 14px 12px 4px;
}

.stories-shell {
  background: #0f1428;
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 10px 10px;
}

.stories-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.stories-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.stories-track::-webkit-scrollbar { height: 3px; }
.stories-track::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

.story-card {
  flex: 0 0 auto;
  width: 84px;
  aspect-ratio: 3/4;
  scroll-snap-align: start;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gold-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.story-card:active {
  transform: scale(0.97);
  border-color: var(--gold);
}

.story-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a2238;
  background-image: linear-gradient(135deg, #1e2a4a 0%, #141d36 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-photo::before {
  content: '👤';
  font-size: 40px;
  opacity: 0.3;
}

.story-photo[style*="url"]::before {
  content: none;
}

.story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

.story-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 5px 7px;
  text-align: center;
  z-index: 2;
}

.story-name {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.story-earning {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  margin-top: 1px;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.stories-more {
  display: block;
  margin: 14px auto 0;
  padding: 10px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stories-more:active {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
}

/* Modal */
.story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.story-modal.open { display: flex; }

.story-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 360px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.story-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
}

.story-modal-photo {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: #1a2238;
  border-radius: 18px 18px 0 0;
}

.story-modal-body {
  padding: 16px 18px 22px;
}

.story-modal-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.story-modal-earning {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin: 4px 0 12px;
}

.story-modal-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-line;
}

@media (min-width: 769px) {
  .story-card { width: 180px; }
  .stories-title { font-size: 20px; }
}

/* ─── Why Block (Почему Work & Travel) ────────────────────────── */
.why-section {
  padding: 14px 12px;
}

.why-block {
  background: linear-gradient(135deg, #0f1426 0%, #1a2238 100%);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
}

.why-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.why-body {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.why-list {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-right: 42%;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.why-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-emoji {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.why-bear-img {
  position: absolute;
  right: 10px;
  bottom: -10px;
  width: 55%;
  max-width: 260px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 769px) {
  .why-title { font-size: 22px; }
  .why-list li { font-size: 16px; gap: 12px; }
  .why-check { width: 24px; height: 24px; font-size: 13px; }
  .why-bear-img { max-width: 300px; }
}

/* ─── Benefits  Section ───────────────────────────────────────── */
.benefits {
  padding: 14px;
  background: #0a0d1a;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.benefit-card {
  background: rgba(21, 30, 58, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.benefit-card:active {
  border-color: var(--gold);
  transform: scale(0.95);
}

.benefit-icon {
  font-size: 26px;
  margin-bottom: 5px;
}

.benefit-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.2;
}

.benefit-card p {
  font-size: 8px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ─── Bottom Navigation ──────────────────────────────────────── */
.bottom-nav {
  display: none;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.nav-item.active {
  color: var(--gold);
}

.nav-icon {
  font-size: 16px;
  line-height: 1;
}

.nav-label {
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ─── Desktop Responsive ────────────────────────────────────── */
@media (min-width: 769px) {
  .hero {
    min-height: auto;
    padding: 24px 20px;
    background-image: url('../assets/images/backgrounds/bear-mascot.jpg');
  }

  .hero-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
  }

  .hero-left {
    display: block;
    text-align: center;
  }

  .hero-bear {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  }

  .hero-center {
    gap: 12px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-right {
    margin-top: 0;
    justify-content: center;
  }

  .price-block {
    max-width: 240px;
  }

  .categories {
    padding: 24px 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-card {
    min-height: 120px;
    padding: 14px;
  }

  .benefits {
    padding: 24px 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .benefit-card {
    padding: 12px;
  }
}
/* ─── Stats Banner ───────────────────────────────────────────── */
.stats-banner {
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 10px 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.stat-icon {
  font-size: 18px;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 7px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ─── Benefits Slider ────────────────────────────────────────── */
.benefits-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.benefits-slider::-webkit-scrollbar {
  height: 3px;
}

.benefits-slider::-webkit-scrollbar-track {
  background: transparent;
}

.benefits-slider::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 2px;
}

.benefits-slider .benefit-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  background: rgba(21, 30, 58, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.benefits-slider .benefit-card:active {
  border-color: var(--gold);
  transform: scale(0.95);
}

/* ─── Social Banner ──────────────────────────────────────────── */
.social-banner {
  margin: 0 12px 20px;
  background-image: url('../assets/images/backgrounds/news-bg.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  min-height: 150px;
  position: relative;
}

.social-banner-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  position: relative;
}

.social-left {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.social-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.social-title-accent {
  color: var(--gold);
}

.social-desc {
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 200px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  overflow: hidden;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.social-btn:active { transform: scale(0.9); }

.social-right {
  width: 150px;
  flex-shrink: 0;
  position: relative;
}

.social-phone {
  position: absolute;
  right: 26px;
  top: -26px;
  bottom: -14px;
  width: 96px;
  height: calc(100% + 40px);
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  filter: drop-shadow(-4px 6px 10px rgba(0,0,0,0.4));
}

.float-trajectory {
  position: absolute;
  left: -60px;
  bottom: 0;
  width: 200px;
  height: 140px;
  z-index: 1;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.float-heart {
  width: 36px;
  left: -46px;
  top: 6px;
}

.float-plane {
  width: 44px;
  left: -34px;
  bottom: 34px;
}

.float-bell {
  width: 38px;
  right: -4px;
  top: 2px;
}

.social-photo-hidden {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 16px 16px 0;
}

/* ─── Section Header with hint ───────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.slider-hint {
  font-size: 9px;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─── Benefits slider arrow hint ─────────────────────────────── */
.benefits-wrapper {
  position: relative;
}

.benefits-wrapper::after {
  content: '▶';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(10,13,26,0.9));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  color: var(--gold);
  font-size: 14px;
  pointer-events: none;
  animation: pulse 1.5s infinite;
}

/* ─── Knowledge Base ─────────────────────────────────────────── */
.knowledge-base {
  padding: 14px;
}

.kb-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kb-subtitle {
  font-size: 9px;
  color: var(--text-muted);
}

.kb-show-all {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 9px;
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.kb-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.kb-slider::-webkit-scrollbar { height: 2px; }
.kb-slider::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

.kb-card {
  flex: 0 0 120px;
  height: 150px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid var(--border);
}

.kb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.kb-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  z-index: 2;
}

.kb-title {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}

.kb-desc {
  font-size: 7px;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
  margin-bottom: 4px;
}

.kb-arrow {
  font-size: 11px;
  color: var(--gold);
}

/* ─── Three Columns ──────────────────────────────────────────── */
.three-cols {
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-block {
  background: rgba(21, 30, 58, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.col-icon {
  font-size: 16px;
}

/* Destinations grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.dest-card {
  aspect-ratio: 1/1.2;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}

.dest-name {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 6px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.col-btn {
  width: 100%;
  padding: 8px;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* Useful list */
.useful-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.useful-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(42,58,90,0.5);
  font-size: 10px;
  color: var(--text);
  cursor: pointer;
}

.useful-item span {
  color: var(--gold);
  font-size: 14px;
}

.useful-item:last-child {
  border-bottom: none;
}

/* ─── Useful + Social side by side ──────────────────────────── */
.useful-social-row {
  display: block;
  padding: 0;
}

.useful-block {
  margin: 0 !important;
}

/* ─── Social banner (Будь в курсе) ───────────────────────────── */
.useful-social-row .social-banner { margin: 0 12px 16px !important; border-radius: 16px; }
.useful-social-row .social-left { padding: 16px 14px; }
.useful-social-row .social-btn, .useful-social-row .social-btn img { width: 40px; height: 40px; }

/* ─── Price Block ────────────────────────────────────────────── */
.hero-right {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 3;
}

.price-block {
  background: rgba(10, 13, 26, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 4px 6px;
  min-width: 100px;
  max-width: 130px;
  backdrop-filter: blur(6px);
  transform: scale(1.0);
  transform-origin: right center;
}

.price-label {
  font-size: 6px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.price-old-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.price-old {
  font-size: 9px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 9px;
  font-weight: 700;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 4px;
  padding: 1px 4px;
}

.price-deadline {
  font-size: 6px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.countdown {
  display: flex;
  gap: 4px;
}

.countdown-item {
  flex: 1;
  background: #0a0d1a;
  border-radius: 6px;
  padding: 3px 2px;
  text-align: center;
  border: 1px solid var(--border);
}

.countdown-number {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: 5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ─── Benefits List ──────────────────────────────────────────── */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefits-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(42, 58, 90, 0.4);
}

.benefits-list-item:last-child {
  border-bottom: none;
}

.benefits-list-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefits-list-text {
  flex: 1;
}

.benefits-list-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}

.benefits-list-desc {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Benefits yellow background ─────────────────────────────── */
.benefits {
  background: #d4af37 !important;
}

.benefits .section-title {
  color: #0a0d1a !important;
}

.benefits-list-title {
  color: #0a0d1a !important;
}

.benefits-list-desc {
  color: rgba(10, 13, 26, 0.7) !important;
}

.benefits-list-item {
  border-bottom: 1px solid rgba(10, 13, 26, 0.15) !important;
}
/* ─── Apply Modal (форма заявки) ─────────────────────────────── */
.apply-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1400; }
.apply-modal.open { display: flex; }
.apply-modal-box { background: #151e3a; border: 1px solid var(--gold-border, rgba(212,175,55,0.4)); border-radius: 18px; padding: 24px 20px; width: 100%; max-width: 380px; position: relative; }
.apply-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: #f5f1e8; font-size: 16px; cursor: pointer; }
.apply-modal-title { font-size: 20px; font-weight: 800; color: #f5f1e8; margin-bottom: 6px; }
.apply-modal-sub { font-size: 13px; color: #9a958a; margin-bottom: 18px; line-height: 1.4; }
.apply-fields { display: flex; flex-direction: column; gap: 10px; }
.apply-input { padding: 13px 14px; background: #0a0d1a; border: 1.5px solid #2a3a5a; border-radius: 12px; color: #f5f1e8; font-size: 15px; font-family: inherit; outline: none; }
.apply-input:focus { border-color: #d4af37; }
.apply-input::placeholder { color: #9a958a; }
textarea.apply-input { resize: vertical; }
.apply-submit { margin-top: 16px; width: 100%; padding: 14px; background: linear-gradient(180deg,#F7CE3E,#F0A80E); color: #1a1205; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; }
.apply-submit:disabled { opacity: 0.6; }
.apply-success { display: none; margin-top: 14px; padding: 12px; background: rgba(76,175,110,0.15); border: 1px solid rgba(76,175,110,0.5); border-radius: 10px; color: #7fdca0; font-size: 14px; text-align: center; }
.apply-success.show { display: block; }

/* ─── Skeleton загрузки историй ──────────────────────────────── */
.story-skeleton .story-photo,
.story-skeleton .sk-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 37%, rgba(255,255,255,0.06) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
.story-skeleton .sk-line { display: block; height: 11px; margin: 6px auto 0; }
.story-skeleton .sk-name { width: 60%; }
.story-skeleton .sk-earn { width: 40%; height: 13px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ─── Article Overlay (контент кнопок-категорий) ─────────────────── */
.article-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: #0a0f1e;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.article-overlay.open { transform: translateY(0); }
.article-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(240,168,14,0.25);
  background: #0d1428; position: sticky; top: 0; z-index: 2;
}
.article-back {
  background: rgba(240,168,14,0.12); color: #F7CE3E;
  border: 1px solid rgba(240,168,14,0.4); border-radius: 10px;
  padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.article-htitle {
  color: #f5f1e8; font-size: 15px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-body {
  flex: 1; overflow-y: auto; padding: 20px 18px 60px;
  -webkit-overflow-scrolling: touch;
}
.article-body h2 {
  color: #F7CE3E; font-size: 22px; font-weight: 800;
  margin: 0 0 8px; line-height: 1.25;
}
.article-body h3 {
  color: #f5c542; font-size: 17px; font-weight: 800;
  margin: 24px 0 10px; line-height: 1.3;
}
.article-body p { color: #cdd3e0; font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.article-body ul { list-style: none; padding: 0; margin: 0 0 14px; }
.article-body li {
  position: relative; color: #cdd3e0; font-size: 15px; line-height: 1.55;
  padding: 4px 0 4px 22px;
}
.article-body li::before {
  content: '•'; position: absolute; left: 6px; color: #F0A80E; font-weight: 800;
}
.article-body b, .article-body strong { color: #f5f1e8; font-weight: 700; }
.article-lead { color: #aeb6c6; font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.article-callout {
  background: linear-gradient(180deg, rgba(240,168,14,0.14), rgba(240,168,14,0.05));
  border: 1px solid rgba(240,168,14,0.4); border-radius: 14px;
  padding: 16px; margin: 16px 0;
}
.article-callout p { margin: 0; color: #f5f1e8; }
.article-price { text-align: center; margin: 18px 0; }
.article-price .ap-old { color: #8a90a0; text-decoration: line-through; font-size: 18px; }
.article-price .ap-now { color: #F7CE3E; font-size: 40px; font-weight: 900; line-height: 1.1; margin: 4px 0; }
.article-price .ap-note { color: #7fdca0; font-size: 14px; font-weight: 700; }
.article-stage {
  background: #111a30; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 16px; margin: 10px 0;
}
.article-stage .as-title { color: #f5f1e8; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.article-stage .as-sum { color: #F7CE3E; font-weight: 900; font-size: 20px; margin-bottom: 4px; }
.article-stage .as-desc { color: #aeb6c6; font-size: 14px; line-height: 1.5; }
/* Второстепенная кнопка-ссылка в статье (договоры и т.п.) */
.article-link-btn {
  display: block; width: 100%; margin: 8px 0; padding: 13px 15px;
  background: transparent; color: #F7CE3E; text-align: left;
  border: 1px solid rgba(247,206,62,0.45); border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.article-link-btn:active { background: rgba(247,206,62,0.1); }
.article-stage ul { margin: 6px 0 4px; }
.article-cta {
  display: block; width: 100%; margin-top: 22px; padding: 15px;
  background: linear-gradient(180deg,#F7CE3E,#F0A80E); color: #1a1205;
  border: none; border-radius: 14px; font-size: 16px; font-weight: 800; cursor: pointer;
}

/* ─── Энциклопедия ───────────────────────────────────────────────── */
.enc-overlay { position: fixed; inset: 0; z-index: 1150; background: #0a0f1e; transform: translateY(100%); transition: transform 0.28s ease; display: flex; flex-direction: column; }
.enc-overlay.open { transform: translateY(0); }
.enc-screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.enc-hero { padding: 16px 16px 18px; background: linear-gradient(180deg, #12203f, #0a0f1e); border-bottom: 1px solid rgba(240,168,14,0.15); }
.enc-back { align-self: flex-start; background: rgba(255,255,255,0.08); color: #f5f1e8; border: none; border-radius: 10px; padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: 12px; }
.enc-title { font-size: 26px; font-weight: 900; color: #f5f1e8; margin: 0; line-height: 1.1; letter-spacing: 0.5px; }
.enc-title span { color: #F7CE3E; }
.enc-subtitle { color: #9aa4bd; font-size: 12px; margin: 6px 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.enc-search-wrap { position: relative; }
.enc-search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: 0.7; }
.enc-search { width: 100%; padding: 13px 14px 13px 40px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: #0a0d1a; color: #f5f1e8; font-size: 15px; font-family: inherit; outline: none; }
.enc-search:focus { border-color: #d4af37; }
.enc-search::placeholder { color: #7a8299; }
.enc-cards { padding: 14px; display: flex; flex-direction: column; gap: 13px; }
.enc-card { position: relative; overflow: hidden; padding: 15px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.10); background: linear-gradient(135deg,#243a5e,#0f1a2e); cursor: pointer; min-height: 112px; display: flex; flex-direction: column; justify-content: center; transition: transform 0.1s; }
.enc-card:active { transform: scale(0.99); }
.enc-emoji { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 66px; opacity: 0.16; pointer-events: none; }
.enc-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; position: relative; z-index: 1; }
.enc-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(240,168,14,0.7); color: #F7CE3E; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); }
.enc-card-title { color: #fff; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.15; }
.enc-card-desc { color: rgba(255,255,255,0.78); font-size: 12.5px; line-height: 1.45; max-width: 74%; position: relative; z-index: 1; }
.enc-arrow-btn { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; background: rgba(0,0,0,0.22); z-index: 1; }
.enc-empty { color: #9aa4bd; text-align: center; padding: 24px; }
.enc-ask { margin: 6px 14px 24px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(240,168,14,0.12), rgba(240,168,14,0.04)); border: 1px solid rgba(240,168,14,0.35); }
.enc-ask-title { color: #f5f1e8; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.enc-ask-sub { color: #aeb6c6; font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
.enc-ask-btn { width: 100%; padding: 13px; background: linear-gradient(180deg,#F7CE3E,#F0A80E); color: #1a1205; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; }
.enc-detail-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(240,168,14,0.25); background: #0d1428; position: sticky; top: 0; z-index: 2; }
.enc-detail-title { color: #f5f1e8; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enc-soon { color: #9aa4bd; font-style: italic; background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.15); border-radius: 12px; padding: 16px; margin-top: 8px; }

/* ─── Детали вакансии (Примеры работы) ───────────────────────────── */
.job-facts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.job-fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; background: #111a30; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.job-fact > span { color: #9aa4bd; font-size: 13px; flex-shrink: 0; }
.job-fact > b { color: #f5f1e8; font-size: 13px; font-weight: 700; text-align: right; line-height: 1.35; }

/* ─── Просмотр оригинала вакансии (картинки) ─────────────────────── */
.orig-overlay { position: fixed; inset: 0; z-index: 1200; background: #0a0f1e; transform: translateY(100%); transition: transform 0.28s ease; display: flex; flex-direction: column; }
.orig-overlay.open { transform: translateY(0); }
.orig-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(240,168,14,0.25); background: #0d1428; position: sticky; top: 0; z-index: 2; }
.orig-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.orig-body img { width: 100%; height: auto; border-radius: 8px; background: #fff; display: block; }

/* ─── Образец документа ──────────────────────────────────────────── */
.doc-sample { width: 100%; height: auto; border-radius: 12px; background: #fff; display: block; margin: 12px 0 16px; border: 1px solid rgba(255,255,255,0.12); cursor: zoom-in; }
.zoom-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,0.94); display: none; align-items: center; justify-content: center; padding: 12px; }
.zoom-overlay.open { display: flex; }
.zoom-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.zoom-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 18px; cursor: pointer; }
/* ─── Реальные заработки (оверлей: калькулятор + карточки) ───────── */
.earn-body { padding: 16px 14px 40px; }
.earn-panel {
  background: linear-gradient(160deg,#151e3a 0%,#111a30 100%);
  border: 1px solid #2a3a5a; border-radius: 18px; padding: 18px 16px; margin-bottom: 22px;
}
.earn-panel-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:800; color:#f5f1e8; margin-bottom:16px; }
.earn-dot { width:8px; height:8px; border-radius:50%; background:#F7CE3E; box-shadow:0 0 10px #F7CE3E; }
.earn-jobs { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:16px; scrollbar-width:none; }
.earn-jobs::-webkit-scrollbar { display:none; }
.earn-job {
  flex:0 0 auto; padding:8px 12px; border-radius:12px; border:1px solid #2a3a5a;
  background:rgba(255,255,255,0.03); color:#9aa4bd; font-size:13px; font-weight:600; cursor:pointer;
  white-space:nowrap; transition:.15s;
}
.earn-job.active { background:rgba(247,206,62,0.14); border-color:#F7CE3E; color:#F7CE3E; }
.earn-ctrl { margin-bottom:16px; }
.earn-ctrl-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; font-size:13px; color:#9aa4bd; font-weight:600; }
.earn-ctrl-top .earn-val { font-size:16px; font-weight:800; color:#F7CE3E; }
.earn-range {
  -webkit-appearance:none; appearance:none; width:100%; height:5px; border-radius:5px;
  background:linear-gradient(90deg,#F7CE3E var(--fill,50%),#26304d var(--fill,50%)); outline:none;
}
.earn-range::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:50%; background:#F7CE3E; border:3px solid #0a0f1e; box-shadow:0 0 0 1px #F7CE3E; cursor:pointer; }
.earn-range::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:#F7CE3E; border:3px solid #0a0f1e; cursor:pointer; }
.earn-result {
  margin-top:20px; padding:18px; border-radius:14px; text-align:center;
  background:radial-gradient(circle at 50% 0%,rgba(247,206,62,0.16),rgba(247,206,62,0.03));
  border:1px solid rgba(247,206,62,0.3);
}
.earn-rlabel { font-size:12px; color:#9aa4bd; text-transform:uppercase; letter-spacing:1.5px; font-weight:700; }
.earn-rbig { font-size:44px; font-weight:900; color:#F7CE3E; line-height:1.05; margin:6px 0; letter-spacing:-1px; }
.earn-rbig .earn-cur { font-size:26px; vertical-align:top; margin-right:2px; }
.earn-breakdown { display:flex; justify-content:space-between; gap:10px; margin-top:14px; }
.earn-bd { flex:1; background:rgba(255,255,255,0.03); border-radius:10px; padding:10px 6px; }
.earn-bd .k { font-size:11px; color:#9aa4bd; margin-bottom:3px; }
.earn-bd .v { font-size:15px; font-weight:800; color:#f5f1e8; }
.earn-bd.net .v { color:#7fdca0; }
.earn-bd.exp .v { color:#ff6b6b; }
.earn-disclaimer { font-size:11px; color:#9aa4bd; text-align:center; margin-top:12px; line-height:1.5; }
.earn-sec-title { font-size:18px; font-weight:900; color:#f5f1e8; margin:0 4px 14px; }
.earn-card {
  background:linear-gradient(150deg,#151e3a 0%,#111a30 100%);
  border:1px solid #2a3a5a; border-radius:16px; padding:16px; margin-bottom:12px;
  display:flex; align-items:center; gap:14px; position:relative; overflow:hidden;
}
.earn-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:#F7CE3E; }
.earn-ava {
  flex:0 0 auto; width:52px; height:52px; border-radius:14px; background-size:cover; background-position:center;
  background-color:rgba(247,206,62,0.12); border:1px solid rgba(247,206,62,0.25);
  display:flex; align-items:center; justify-content:center; font-size:24px;
}
.earn-who { flex:1; min-width:0; }
.earn-who .nm { font-size:15px; font-weight:800; color:#f5f1e8; }
.earn-who .meta { font-size:12px; color:#9aa4bd; margin-top:3px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; }
.earn-amt { flex:0 0 auto; text-align:right; }
.earn-amt .num { font-size:22px; font-weight:900; color:#F7CE3E; letter-spacing:-.5px; }
.earn-amt .cap { font-size:10px; color:#9aa4bd; text-transform:uppercase; letter-spacing:.5px; }
.earn-empty { text-align:center; color:#9aa4bd; font-size:14px; padding:30px 0; }

/* ─── Заработки: полноэкранная карточка студента ────────────────── */
.earn-card { cursor: pointer; }
.earn-detail {
  position: fixed; inset: 0; z-index: 1200; background: #0a0f1e;
  transform: translateY(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.earn-detail.open { transform: translateY(0); }
.earn-detail-photo {
  width: 100%; height: 46vh; min-height: 280px; flex: 0 0 auto; position: relative;
  background-size: cover; background-position: center; background-color: #1a2238;
}
.earn-detail-photo.no-photo {
  background-image: radial-gradient(circle at 50% 35%, #1e2c50, #0a0f1e);
  display: flex; align-items: center; justify-content: center;
}
.earn-detail-photo.no-photo::after { content: "🎒"; font-size: 72px; opacity: .5; }
.earn-detail-photo::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(10,15,30,0), #0a0f1e);
}
.earn-detail-close {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(0,0,0,0.55); color: #f5f1e8; border: none; border-radius: 10px;
  padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px);
}
.earn-detail-info { padding: 4px 20px 44px; margin-top: -24px; position: relative; z-index: 1; }
.earn-detail-name { font-size: 26px; font-weight: 900; color: #f5f1e8; letter-spacing: -.5px; }
.earn-detail-earning {
  display: inline-block; margin: 10px 0 16px; padding: 6px 16px; border-radius: 12px;
  font-size: 28px; font-weight: 900; color: #F7CE3E; letter-spacing: -.5px;
  background: rgba(247,206,62,0.12); border: 1px solid rgba(247,206,62,0.3);
}
.earn-detail-text { font-size: 15px; line-height: 1.65; color: #cdd3e0; white-space: pre-line; margin: 0; }

/* ─── Заработки: штат·профессия + навигация (свайп) ─────────────── */
.earn-detail-meta { font-size: 14px; color: #9aa4bd; font-weight: 600; margin: 6px 0 0; }
.earn-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(10,15,30,0.55); color: #f5f1e8; font-size: 24px; font-weight: 700;
  line-height: 1; cursor: pointer; backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
}
.earn-nav-prev { left: 12px; }
.earn-nav-next { right: 12px; }
.earn-nav[disabled] { opacity: 0; pointer-events: none; }
.earn-detail-count {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(10,15,30,0.6); color: #f5f1e8; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; backdrop-filter: blur(4px);
}
.earn-detail-info.swap { animation: earnSwap 0.25s ease; }
@keyframes earnSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Задай вопрос Медведю: выбор темы ──────────────────────────── */
.ask-bear-topics { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ask-bear-topic {
  text-align: left; padding: 12px 14px; background: #0a0d1a; border: 1.5px solid #2a3a5a;
  border-radius: 12px; color: #cdd3e0; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: 0.15s;
}
.ask-bear-topic.active { border-color: #d4af37; background: rgba(212,175,55,0.12); color: #f5f1e8; }
/* ─── Прокрутка внутри окон не передаётся главной странице ─────── */
.enc-screen, .article-body, .orig-body, .earn-detail, .story-modal-box,
.zoom-overlay, .apply-modal, .story-modal { overscroll-behavior: contain; }

/* ═══ Заставка при открытии: медведь здоровается, потом экран складывается ═══ */
html.splash-lock, html.splash-lock body { overflow: hidden; }

.splash {
  position: fixed; inset: 0; z-index: 5000;
  perspective: 1400px;              /* для 3D-раскрытия створок */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Две створки несут фон: при выходе раскрываются, как двери */
.splash-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(circle at 50% 40%, rgba(247,206,62,0.20) 0%, rgba(247,206,62,0) 34%),
    radial-gradient(ellipse at 50% 45%, #1d2b55 0%, #101833 45%, #0a0d1a 80%);
  background-size: 200% 100%;       /* градиент общий на обе половины — шва не видно */
  backface-visibility: hidden;
  transition: transform .8s cubic-bezier(.65,0,.35,1) .18s, filter .8s ease .18s;
}
.splash-door-l { left: 0; background-position: left center; transform-origin: left center; }
.splash-door-r { right: 0; background-position: right center; transform-origin: right center; }

/* Пока картинка медведя не загрузилась — анимации стоят на первом кадре (медведь не «пропускает» выход) */
.splash:not(.splash-go) .splash-content * { animation-play-state: paused !important; }

.splash-content {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
}

/* Золотое свечение за медведем — «дышит» */
.splash-glow {
  position: absolute; left: 50%; top: 42%; width: 120vmin; height: 120vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247,206,62,0.28) 0%, rgba(240,168,14,0.10) 30%, rgba(10,13,26,0) 60%);
  animation: splash-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* Искорки вокруг */
.splash-sparkles i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #F7CE3E; box-shadow: 0 0 10px 2px rgba(247,206,62,.7);
  opacity: 0; animation: splash-twinkle 1.8s ease-in-out infinite;
}
.splash-sparkles i:nth-child(1) { left: 18%; top: 22%; animation-delay: .2s; }
.splash-sparkles i:nth-child(2) { left: 80%; top: 18%; animation-delay: .7s; width: 4px; height: 4px; }
.splash-sparkles i:nth-child(3) { left: 12%; top: 56%; animation-delay: 1.1s; width: 4px; height: 4px; }
.splash-sparkles i:nth-child(4) { left: 86%; top: 50%; animation-delay: .4s; }
.splash-sparkles i:nth-child(5) { left: 28%; top: 9%;  animation-delay: 1.4s; width: 3px; height: 3px; }
.splash-sparkles i:nth-child(6) { left: 70%; top: 66%; animation-delay: .9s; width: 3px; height: 3px; }

.splash-stage { position: relative; left: -6vw;   /* медведь чуть левее — облачко справа, вместе по центру */
  display: flex; flex-direction: column; align-items: center; }

/* Медведь: стоит неподвижно, плавно проявляется.
   Тень — отдельным статичным пятном под ногами: тень на самом движущемся медведе
   телефон перерисовывает каждый кадр, из-за этого анимация шла рывками. */
.splash-bear {
  position: relative; z-index: 2;
  height: min(54vh, 440px); aspect-ratio: 368 / 760;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  animation: splash-appear .7s ease-out both;   /* медведь стоит неподвижно — только плавно проявляется */
}
.splash-bear img { display: block; width: 100%; height: 100%; }
.splash-floor {
  width: min(30vh, 230px); height: 22px; margin-top: -16px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.6), rgba(0,0,0,0) 70%);
  will-change: transform, opacity;
  animation: splash-appear .7s ease-out both;
}

/* Облачко «Привет!» у головы */
.splash-bubble {
  position: absolute; z-index: 3; top: 19%; left: 76%;
  background: #fff; color: #1a1205; font-weight: 800; font-size: 18px; white-space: nowrap;
  padding: 9px 14px 9px 16px; border-radius: 18px 18px 18px 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transform-origin: 0% 100%;
  will-change: transform, opacity;
  animation: splash-bubble .6s cubic-bezier(.22,1,.36,1) .6s both;
}
.splash-bubble::after {          /* хвостик облачка — к голове медведя */
  content: ""; position: absolute; left: -2px; bottom: -8px;
  border: 10px solid transparent; border-top-color: #fff; border-left-width: 0;
  transform: skewX(-20deg);
}

.splash-brand { position: relative; z-index: 2; margin-top: 22px; text-align: center;
  animation: splash-rise .6s ease-out .3s both; }
.splash-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800;
  font-size: 34px; letter-spacing: 6px; color: #F7CE3E;
  text-shadow: 0 2px 18px rgba(247,206,62,.35);
}
.splash-sub { margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #cdd3e0; }
.splash-bar {
  width: 150px; height: 4px; margin: 16px auto 0; border-radius: 4px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.splash-bar span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #F0A80E, #F7CE3E);
  animation: splash-load 3.4s cubic-bezier(.3,.7,.4,1) forwards;
}

/* ── Выход: медведь прыгает и «складывается» в логотип, створки раскрываются ── */
.splash-out { pointer-events: none; }
.splash-out .splash-door-l { transform: rotateY(-100deg); filter: brightness(.4); }
.splash-out .splash-door-r { transform: rotateY(100deg);  filter: brightness(.4); }
.splash-out .splash-bear { animation: splash-fade .35s ease-in forwards; }
.splash-out .splash-bubble { animation: splash-pop-out .25s ease-in forwards; }
.splash-out .splash-floor,
.splash-out .splash-brand,
.splash-out .splash-glow,
.splash-out .splash-sparkles { animation: splash-fade .3s ease-in forwards; }
.splash-out .splash-bar span { width: 100%; animation: none; transition: width .2s; }

@keyframes splash-bubble { from { transform: scale(.3) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-load { 0% { width: 0; } 100% { width: 88%; } }
@keyframes splash-breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
                            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes splash-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes splash-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-pop-out { to { transform: scale(0); opacity: 0; } }
@keyframes splash-fade { to { opacity: 0; } }

/* Кто отключил анимации в системе — просто мягкое затухание */
@media (prefers-reduced-motion: reduce) {
  .splash *, .splash *::after { animation: none !important; }
  .splash-door { transition: opacity .4s ease; }
  .splash-out .splash-door-l, .splash-out .splash-door-r { transform: none; opacity: 0; }
  .splash-out .splash-content { opacity: 0; transition: opacity .3s; }
  .splash-bar span { width: 88%; }
}
