/* Hostyki — design tokens & base */
:root {
  --e: #1B4D3E;
  --em: #245C4A;
  --ed: #0F2920;
  --g: #C9A050;
  --gl: #D9B878;
  --gp: #EDD9A3;
  --cr: #F5F1E8;
  --cd: #EDE8DC;
  --gr: #2C2C2C;
  --gm: #4A4A4A;
  --gt: #636363;
  --wh: #FDFCFA;
  --bg: #F0EDE4;
  --rule: rgba(201, 160, 80, 0.18);
  --emerald: #1B4D3E;
  --emerald-mid: #245C4A;
  --emerald-deep: #122E25;
  --gold: #C9A050;
  --gold-pale: #EDD9A3;
  --cream: #F5F1E8;
  --graphite: #2C2C2C;
  --graphite-mid: #4A4A4A;
  --graphite-lt: #636363;
  --gold-text: #7E6418;
  --white: #FDFCFA;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--gr); -webkit-font-smoothing: antialiased; }

/* Typography */
.t-display { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; }
.t-h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 3.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.t-h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1.2; }
.t-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.t-body { font-size: 1rem; line-height: 1.72; font-weight: 300; color: var(--graphite-mid); }
.t-small { font-size: 0.8125rem; line-height: 1.6; color: var(--graphite-lt); }
.highlight-em { color: var(--gold-text); font-style: italic; }
#method .highlight-em, .pg-staff-hero .highlight-em, .pg-business-hero .highlight-em, footer .highlight-em, #b2b .highlight-em, .blog-hero .highlight-em { color: var(--gold); }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }

/* Buttons — touch-friendly min height on small screens */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; padding: 13px 26px; cursor: pointer; border: none; transition: all 0.28s; white-space: nowrap; }
@media (max-width: 600px) { .btn { min-height: 44px; padding: 12px 22px; } }
.btn-emerald { background: var(--emerald); color: var(--gold-pale); }
.btn-emerald:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: var(--gl); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--cream); }
.btn-lg { padding: 16px 34px; font-size: 0.875rem; }

/* Nav */
#spa-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 60px; background: rgba(240, 237, 228, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); transition: all 0.3s; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
#spa-nav.dark { background: rgba(15, 41, 32, 0.95); border-bottom-color: rgba(201, 160, 80, 0.12); }
.spa-nav-inner { max-width: 1340px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 40px; gap: 20px; min-width: 0; }
.spa-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: var(--gr); cursor: pointer; flex-shrink: 0; min-width: 0; }
.spa-logo-dot { color: var(--g); }
.spa-nav-links { display: flex; align-items: center; list-style: none; margin-right: auto; }
.spa-nav-link { padding: 0 10px; height: 60px; display: flex; align-items: center; font-size: 0.75rem; color: var(--gt); cursor: pointer; transition: color 0.2s; border: none; border-bottom: 2px solid transparent; background: none; letter-spacing: 0.05em; text-transform: uppercase; }
.spa-nav-link:hover { color: var(--gr); }
.spa-nav-link.active { color: var(--e); border-bottom-color: var(--g); }
.spa-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.spa-lang { display: flex; gap: 1px; background: rgba(44, 44, 44, 0.07); padding: 3px; }
.spa-lang-btn { font-size: 0.67rem; font-weight: 500; letter-spacing: 0.06em; padding: 4px 8px; background: transparent; border: none; cursor: pointer; color: var(--gt); transition: all 0.15s; text-transform: uppercase; }
.spa-lang-btn.active { background: var(--wh); color: var(--e); font-weight: 600; }
.spa-cta { background: var(--e); color: var(--gp); font-size: 0.78rem; font-weight: 500; padding: 9px 18px; border: none; cursor: pointer; letter-spacing: 0.04em; transition: background 0.2s; }
.spa-cta:hover { background: var(--ed); }

/* Hamburger — вписан в дизайн, один стиль для десктопа и мобилки */
.spa-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -6px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s;
}
.spa-hamburger:hover {
  background: rgba(201, 160, 80, 0.08);
  border-color: rgba(201, 160, 80, 0.35);
}
#spa-nav.dark .spa-hamburger {
  border-color: rgba(201, 160, 80, 0.25);
}
#spa-nav.dark .spa-hamburger:hover {
  background: rgba(201, 160, 80, 0.12);
}
.spa-hamburger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gr);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}
#spa-nav.dark .spa-hamburger-bar {
  background: var(--gp);
}
.spa-hamburger[aria-expanded="true"] .spa-hamburger-bar {
  background: var(--e);
}
#spa-nav.dark .spa-hamburger[aria-expanded="true"] .spa-hamburger-bar {
  background: var(--gp);
}

@media (max-width: 1024px) {
  .spa-nav-links { display: none; }
  .spa-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .spa-cta { display: none; }
  .spa-nav-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .spa-nav-inner { padding: 0 16px; }
}
/* iPhone 14 Pro и узкие смартфоны (393px и меньше) — хедер и контент вмещаются */
@media (max-width: 430px) {
  .wrap { padding: 0 12px; }
  .spa-nav-inner { padding: 0 12px; gap: 8px; }
  .spa-logo { font-size: 1.1rem; }
  .spa-lang-btn { padding: 4px 6px; font-size: 0.6rem; }
  .spa-hamburger { width: 40px; height: 40px; margin: 0 -4px; }
  .spa-hamburger-bar { width: 16px; }
}

/* Выдвижная панель меню — в стиле сайта */
.spa-mob {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 899;
  background: var(--cr);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(27, 77, 62, 0.08);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.spa-mob.open {
  transform: translateX(0);
}
[dir="rtl"] .spa-mob {
  transform: translateX(100%);
}
[dir="rtl"] .spa-mob.open {
  transform: translateX(0);
}
.spa-mob.dark {
  background: var(--ed);
  border-bottom-color: rgba(201, 160, 80, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.spa-mob-inner {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 28px 32px;
}
.spa-mob-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gt);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.spa-mob.dark .spa-mob-label {
  color: rgba(237, 217, 163, 0.5);
  border-bottom-color: rgba(201, 160, 80, 0.15);
}
.spa-mob-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spa-mob-link {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gr);
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: none;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.spa-mob-link:hover {
  background: rgba(201, 160, 80, 0.08);
  color: var(--e);
}
.spa-mob-link.active {
  color: var(--e);
  background: rgba(27, 77, 62, 0.06);
}
.spa-mob.dark .spa-mob-link {
  color: var(--gp);
}
.spa-mob.dark .spa-mob-link:hover {
  background: rgba(201, 160, 80, 0.12);
  color: var(--wh);
}
.spa-mob.dark .spa-mob-link.active {
  color: var(--gp);
  background: rgba(201, 160, 80, 0.15);
}
.spa-mob-langs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.spa-mob.dark .spa-mob-langs {
  border-top-color: rgba(201, 160, 80, 0.15);
}
.spa-mob-langs-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gt);
}
.spa-mob.dark .spa-mob-langs-label {
  color: rgba(237, 217, 163, 0.6);
}
.spa-mob-lang-btn {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--gr);
  transition: all 0.2s;
}
.spa-mob-lang-btn:hover {
  border-color: var(--g);
  color: var(--e);
}
.spa-mob-lang-btn.active {
  background: var(--e);
  color: var(--gp);
  border-color: var(--e);
}
.spa-mob.dark .spa-mob-lang-btn {
  border-color: rgba(201, 160, 80, 0.3);
  color: var(--gp);
}
.spa-mob.dark .spa-mob-lang-btn.active {
  background: var(--g);
  color: var(--ed);
  border-color: var(--g);
}
.spa-mob-cta {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--e);
  color: var(--gp);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.spa-mob-cta:hover {
  background: var(--ed);
}
.spa-mob.dark .spa-mob-cta {
  background: var(--g);
  color: var(--ed);
}
.spa-mob.dark .spa-mob-cta:hover {
  background: var(--gl);
}

.spa-page { display: none; min-height: calc(100vh - 60px); padding-top: 60px; }
.spa-page.active { display: block; }
.spa-bc { padding: 10px 40px; background: var(--wh); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--gt); letter-spacing: 0.05em; text-transform: uppercase; }
.spa-bc-link { cursor: pointer; background: none; border: none; font-size: 0.7rem; color: var(--gt); padding: 0; }
.spa-bc-link:hover { color: var(--e); }
.spa-bc-sep { opacity: 0.4; }
.spa-bc-cur { color: var(--e); font-weight: 500; }

#spa-toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(60px); z-index: 9999; background: var(--e); color: var(--gp); padding: 11px 22px; border-left: 3px solid var(--g); font-size: 0.8rem; opacity: 0; transition: all 0.4s; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); }
#spa-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 480px) { #spa-toast { bottom: 100px; white-space: normal; text-align: center; } }

/* Hero */
#hero { min-height: 100vh; display: grid; grid-template-columns: 58% 42%; position: relative; overflow: hidden; background: var(--cream); }
#hero > .wrap { min-width: 0; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 140px 72px 80px 0; position: relative; z-index: 2; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.eyebrow-rule { width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.hero-headline { margin-bottom: 24px; overflow-wrap: break-word; word-wrap: break-word; word-break: normal; }
.hero-headline .highlight-em { display: inline; overflow-wrap: break-word; }
.hero-sub { margin-bottom: 52px; max-width: 500px; overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 60px; min-width: 0; }
.cta-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 100%; }
.cta-note { font-size: 0.7rem; color: var(--graphite-lt); letter-spacing: 0.04em; flex-basis: 100%; margin-top: 4px; }
.trust-bar { padding-top: 36px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.trust-items { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--graphite-mid); }
.trust-mark { width: 5px; height: 5px; background: var(--gold); flex-shrink: 0; }
.scroll-cue { display: flex; align-items: center; gap: 10px; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-lt); margin-top: 48px; }
.scroll-line { width: 1px; height: 32px; background: var(--gold); opacity: 0.4; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.2; transform: scaleY(0.7); } 50% { opacity: 0.6; transform: scaleY(1); } }

.hero-right { position: relative; background: var(--emerald-deep); overflow: hidden; }
.hero-right::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(27, 77, 62, 0) 30%, rgba(18, 46, 37, 0.7) 100%); }
.hero-visual-content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px 52px; }
.hero-right-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(201, 160, 80, 0.4); margin-bottom: 20px; }
.hotel-stat-card { background: rgba(245, 241, 232, 0.07); border: 1px solid rgba(201, 160, 80, 0.2); backdrop-filter: blur(12px); padding: 24px 28px; margin-bottom: 16px; }
.hotel-stat-number { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 600; color: var(--gold-pale); line-height: 1; margin-bottom: 6px; }
.hotel-stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(237, 217, 163, 0.55); }
.hotel-stat-desc { font-size: 0.8125rem; color: rgba(245, 241, 232, 0.45); margin-top: 4px; line-height: 1.5; }
.hero-vert-text { position: absolute; top: 50%; left: 40px; transform: translateY(-50%) rotate(-90deg); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(201, 160, 80, 0.12); white-space: nowrap; z-index: 4; }
@media (max-width: 900px) { #hero { grid-template-columns: 1fr; } .hero-right { display: none; } .hero-left { padding: 100px 0 60px; } }
@media (max-width: 600px) { .hero-left { padding: 72px 0 48px; } .hero-ctas { margin-bottom: 40px; } .trust-bar { padding-top: 24px; } }
@media (max-width: 430px) {
  .hero-left { padding: 64px 0 40px; }
  .hero-headline { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hero-sub { max-width: 100%; }
  .cta-group { gap: 8px; }
  .cta-note { flex-basis: 100%; margin-top: 6px; }
}

/* Partner strip */
.partner-strip { padding: 44px 0; background: var(--cd); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.partner-inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.partner-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-lt); white-space: nowrap; flex-shrink: 0; }
.partner-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.partner-logo-text { font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--graphite-lt); letter-spacing: 0.05em; opacity: 0.5; }

/* B2C / B2B */
#b2c { padding: 140px 0; background: var(--white); position: relative; }
#b2c::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold) 0%, transparent 100%); }
.b2c-inner, .b2b-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--gold-text); }
#method .section-label, .pg-staff-hero .section-label, .pg-business-hero .section-label, footer .section-label, #b2b .section-label, .blog-hero .section-label, #b2c .section-label { color: var(--gold); }
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.b2c-features, .b2b-features { margin-top: 40px; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.b2c-feature, .b2b-feature { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.feat-index { font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--gold); padding-top: 3px; opacity: 0.7; }
.feat-title { font-size: 0.875rem; font-weight: 500; color: var(--graphite); margin-bottom: 6px; }
.feat-desc { font-size: 0.8125rem; color: var(--graphite-lt); line-height: 1.6; }
.b2b-feat-title { font-size: 0.875rem; font-weight: 500; color: rgba(245, 241, 232, 0.85); margin-bottom: 5px; }
.b2b-feat-desc { font-size: 0.8rem; color: rgba(245, 241, 232, 0.4); line-height: 1.6; }
@media (max-width: 900px) { .b2c-inner, .b2b-inner { grid-template-columns: 1fr; gap: 60px; } }

#b2b { padding: 140px 0; background: var(--emerald); position: relative; overflow: hidden; }

/* Pricing */
#pricing { padding: 140px 0; background: var(--cream); }
.pricing-header { margin-bottom: 72px; }
.pricing-table { display: grid; grid-template-columns: 240px 1fr 1fr 1fr; border: 1px solid var(--rule); background: var(--white); overflow: hidden; }
.pt-cell { padding: 20px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.8125rem; color: var(--graphite-mid); line-height: 1.5; }
.pt-cell:last-child { border-right: none; }
.pt-cell.header { background: var(--cd); padding: 28px; }
.pt-cell.header.featured { background: var(--emerald); border-right-color: rgba(201, 160, 80, 0.15); }
.pt-cell.featured { background: rgba(27, 77, 62, 0.03); }
.pt-plan-name { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 500; color: var(--graphite); margin-bottom: 4px; }
.pt-cell.header.featured .pt-plan-name { color: var(--gold-pale); }
.pt-plan-sub { font-size: 0.7rem; color: var(--graphite-lt); letter-spacing: 0.06em; }
.pt-cell.header.featured .pt-plan-sub { color: rgba(237, 217, 163, 0.45); }
.pt-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500; color: var(--graphite); margin: 10px 0 2px; }
.pt-cell.header.featured .pt-price { color: var(--gold-pale); }
.pt-period { font-size: 0.7rem; color: var(--graphite-lt); }
.pt-badge { display: inline-block; background: var(--gold); color: var(--emerald-deep); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; margin-bottom: 8px; }
.pt-cta-cell { padding: 24px 28px; border-right: 1px solid var(--rule); }
.pt-cta-cell:last-child { border-right: none; }
@media (max-width: 900px) { .pricing-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.pricing-cards-mobile { display: none; flex-direction: column; gap: 24px; }
.pricing-card-mob { background: var(--white); border: 1px solid var(--rule); padding: 28px; border-radius: 4px; }
.pricing-card-mob.featured { background: var(--emerald); border-color: rgba(201, 160, 80, 0.25); }
.pricing-card-mob.featured .pt-plan-name,
.pricing-card-mob.featured .pt-price { color: var(--gold-pale); }
.pricing-card-mob.featured .pt-plan-sub,
.pricing-card-mob.featured .pt-period { color: rgba(237, 217, 163, 0.6); }
.pricing-card-mob .pt-badge { display: inline-block; margin-bottom: 8px; }
.pt-features-mob { font-size: 0.8125rem; color: var(--graphite-mid); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pricing-card-mob.featured .pt-features-mob { color: rgba(245, 241, 232, 0.85); }
@media (max-width: 768px) {
  .pricing-table { display: none !important; }
  .pricing-cards-mobile { display: flex; }
}
@media (min-width: 769px) {
  .pricing-cards-mobile { display: none !important; }
}

/* ═══ Pricing 2026-04: room-count tiers, calculator, monthly/annual toggle ═══ */
.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 32px;
  padding: 4px;
  background: var(--cream-dark);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.pricing-toggle-btn {
  background: transparent;
  border: 0;
  padding: 10px 22px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--graphite-mid);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle-btn:hover { color: var(--graphite); }
.pricing-toggle-btn.active {
  background: var(--emerald);
  color: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(27, 77, 62, 0.18);
}
.pricing-toggle-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--emerald-deep);
  letter-spacing: 0.06em;
}
.pricing-toggle-btn.active .pricing-toggle-badge {
  background: var(--gold-pale);
  color: var(--emerald-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 77, 62, 0.1); }
.pricing-card.featured {
  background: var(--emerald);
  border-color: rgba(201, 160, 80, 0.3);
  color: var(--gold-pale);
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(27, 77, 62, 0.22);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-3px); }
.pc-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--emerald-deep);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pc-plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 4px;
}
.pc-plan-sub { font-size: 0.75rem; color: var(--graphite-lt); margin-bottom: 18px; }
.pc-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--graphite);
  margin: 4px 0 2px;
  line-height: 1.1;
}
.pc-period { font-size: 0.72rem; color: var(--graphite-lt); margin-bottom: 20px; min-height: 1.2em; }
.pricing-card.featured .pc-plan-name,
.pricing-card.featured .pc-price { color: var(--gold-pale); }
.pricing-card.featured .pc-plan-sub,
.pricing-card.featured .pc-period { color: rgba(237, 217, 163, 0.6); }

.pc-calc {
  margin: 0 0 18px;
  padding: 14px;
  background: var(--cream-dark);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pricing-card.featured .pc-calc {
  background: rgba(237, 217, 163, 0.1);
  border-color: rgba(201, 160, 80, 0.25);
}
.pc-calc-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--graphite-lt);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-card.featured .pc-calc-label { color: rgba(237, 217, 163, 0.7); }
.pc-calc-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--graphite);
  box-sizing: border-box;
}
.pc-calc-input:focus { outline: 2px solid var(--emerald); outline-offset: -1px; }
.pc-calc-result {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--graphite);
  min-height: 1.2em;
}
.pc-calc-result.has-value strong {
  font-size: 1.0rem;
  color: var(--emerald);
  font-weight: 600;
}
.pricing-card.featured .pc-calc-result { color: var(--gold-pale); }
.pricing-card.featured .pc-calc-result strong { color: var(--gold); }
.pc-calc-switch {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--graphite-lt);
  font-style: italic;
}
.pricing-card.featured .pc-calc-switch { color: rgba(237, 217, 163, 0.65); }

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex-grow: 1;
}
.pc-features li {
  font-size: 0.8rem;
  color: var(--graphite-mid);
  line-height: 1.5;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pc-features li:last-child { border-bottom: none; }
.pricing-card.featured .pc-features li { color: rgba(245, 241, 232, 0.8); border-bottom-color: rgba(237, 217, 163, 0.1); }
.pc-check { color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.pc-dash { color: var(--graphite-lt); font-weight: 500; flex-shrink: 0; }
.pricing-card.featured .pc-check { color: var(--gold); }
.pricing-card.featured .pc-dash { color: rgba(237, 217, 163, 0.35); }
.pc-cta { width: 100%; margin-top: auto; }

.pc-fx-hint {
  display: inline-block;
  width: 14px; height: 14px;
  font-size: 0.65rem; line-height: 14px;
  text-align: center;
  border-radius: 50%;
  background: var(--graphite-lt);
  color: #fff;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}
.pricing-card.featured .pc-fx-hint { background: rgba(237,217,163,0.5); }

.pricing-vat-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--graphite-mid);
  text-align: center;
}
.pricing-fx-note {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--cream-dark);
  border-left: 3px solid var(--emerald);
  font-size: 0.78rem;
  color: var(--graphite-mid);
  line-height: 1.6;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }
  .pricing-card { padding: 22px 18px; }
  .pc-badge { top: -12px; }
  .pricing-toggle-wrap { display: flex; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
  .pricing-toggle-btn { flex: 1; padding: 10px 12px; font-size: 0.78rem; }
  .pc-calc { padding: 12px; }
  .pc-calc-input { font-size: 1rem; padding: 10px; }
  .pc-features li { font-size: 0.82rem; padding: 8px 0; }
}
/* ═══ /Pricing 2026-04 ═══ */

/* Footer */
footer { background: var(--emerald-deep); padding: 80px 0 48px; border-top: 1px solid rgba(201, 160, 80, 0.08); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 64px; }
.footer-logo-block .logo { color: var(--gold-pale); }
.footer-tagline { font-size: 0.8125rem; color: rgba(245, 241, 232, 0.35); line-height: 1.6; margin-top: 14px; max-width: 240px; }
.footer-col-title { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(201, 160, 80, 0.45); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a, .footer-links button { font-size: 0.8rem; color: rgba(245, 241, 232, 0.35); text-decoration: none; transition: color 0.2s; background: none; border: none; cursor: pointer; text-align: left; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: rgba(245, 241, 232, 0.7); }
.footer-tg-link { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(245, 241, 232, 0.55); text-decoration: none; transition: color 0.2s; }
.footer-tg-link:hover { color: var(--gold-pale); }
.footer-address { font-size: 0.75rem; color: rgba(245, 241, 232, 0.2); line-height: 1.5; margin-top: 8px; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 0.75rem; color: rgba(245, 241, 232, 0.2); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } footer { padding: 48px 0 32px; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(27, 77, 62, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--white); max-width: 540px; width: 92%; position: relative; transform: translateY(16px); transition: transform 0.4s; border-top: 2px solid var(--emerald); max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-head { padding: 40px 44px 28px; border-bottom: 1px solid var(--rule); }
.modal-body { padding: 28px 44px 44px; }
@media (max-width: 480px) { .modal-head { padding: 24px 20px 20px; } .modal-body { padding: 20px 20px 32px; } .modal-close { top: 12px; right: 12px; } }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--graphite-lt); }
.modal-close:hover { color: var(--graphite); }
.form-row { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-lt); margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--rule); background: var(--cream); font-size: 0.875rem; color: var(--graphite); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--emerald); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* Blog */
.blog-hero { background: var(--ed); padding: 72px 64px 56px; border-bottom: 1px solid rgba(201, 160, 80, 0.1); position: relative; overflow: hidden; }
.blog-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.blog-hero-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--g); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.blog-hero-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--g); }
.blog-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; color: var(--gp); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.blog-hero-sub { font-size: 1rem; color: rgba(255, 248, 238, 0.92); max-width: 520px; line-height: 1.65; font-weight: 300; }
.blog-main { max-width: 1200px; margin: 0 auto; padding: 48px 64px 80px; }
@media (max-width: 900px) { .blog-main { padding: 32px 24px 60px; } }

/* B2C auth screen (inline sign-in on #b2c) */
.b2c-auth-screen { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; background: var(--ed); padding: 40px 24px; }
.b2c-auth-inner { width: 100%; max-width: 420px; }
.b2c-auth-head { text-align: center; margin-bottom: 32px; }
.b2c-auth-title { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--cr); margin: 0 0 8px; }
.b2c-auth-sub { font-size: 0.875rem; color: var(--gt); margin: 0; }
.b2c-auth-tabs { display: flex; border: 1px solid var(--rule); overflow: hidden; margin-bottom: 24px; }
.b2c-tab { flex: 1; padding: 12px; font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 500; border: none; cursor: pointer; background: var(--cr); color: var(--gm); transition: background 0.2s, color 0.2s; }
.b2c-tab.active { background: var(--e); color: var(--gp); }
.b2c-auth-form { background: var(--wh); border: 1px solid var(--rule); border-top: 2px solid var(--e); padding: 28px; }
.b2c-form-row { margin-bottom: 16px; }
.b2c-form-label { display: block; font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gt); margin-bottom: 8px; }
.b2c-form-input { width: 100%; padding: 11px 14px; border: 1px solid var(--rule); background: var(--cr); font-family: 'DM Sans', sans-serif; font-size: 0.875rem; color: var(--gr); outline: none; box-sizing: border-box; }
.b2c-auth-option { margin-bottom: 14px; }
.b2c-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.875rem; color: var(--gm); }
.b2c-checkbox { width: 18px; height: 18px; accent-color: var(--e); cursor: pointer; }
.b2c-checkbox-text { user-select: none; }
.b2c-admin-link { display: inline-block; margin-top: 16px; font-size: 0.75rem; color: var(--gt); text-decoration: none; }
.b2c-admin-link:hover { color: var(--g); text-decoration: underline; }
.b2c-auth-err { min-height: 20px; font-size: 0.8rem; color: #dc2626; margin-bottom: 12px; }

/* B2C cabinet (after login) */
.b2c-cabinet { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 200px 1fr; background: var(--bg); }
.b2c-sidebar { padding: 24px 16px; border-right: 1px solid var(--rule); background: var(--wh); }
.b2c-profile-block { text-align: center; }
.b2c-avatar { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--e); color: var(--gp); font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.b2c-profile-name { font-size: 0.9375rem; font-weight: 500; color: var(--gr); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2c-profile-role { font-size: 0.75rem; color: var(--gt); margin-bottom: 12px; }
.b2c-level-text { font-size: 0.75rem; color: var(--e); font-weight: 500; margin-bottom: 4px; }
.b2c-level-stars { font-size: 0.8rem; color: var(--g); margin-bottom: 8px; letter-spacing: 1px; }
.b2c-xp-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.b2c-xp-fill { height: 100%; background: var(--e); border-radius: 3px; transition: width 0.3s; }
.b2c-xp-label { font-size: 0.7rem; color: var(--gt); }

/* XP and level (P2-1 learner dashboard) */
.xp-level { display: flex; justify-content: space-between; margin-bottom: 6px; }
.xp-level__name { font-weight: 500; }
.xp-level__total { color: #6b7280; font-size: 14px; }
.xp-progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.xp-progress-bar__fill { height: 100%; background: #2563eb; border-radius: 4px; transition: width 0.4s ease; }
.xp-to-next { font-size: 12px; color: #6b7280; }
.streak-counter { display: flex; align-items: baseline; gap: 6px; }
.streak-counter__value { font-size: 32px; font-weight: 700; color: #f59e0b; }
.streak-counter__label { font-size: 14px; color: #6b7280; }
.streak-best { font-size: 12px; color: #6b7280; margin-top: 4px; }
.stat-card { text-align: center; padding: 12px; background: #f9fafb; border-radius: 8px; }
.stat-card__value { font-size: 24px; font-weight: 700; color: #111827; }
.stat-card__label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.course-progress-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.course-progress-card--done { border-color: #86efac; background: #f0fdf4; }
.course-progress-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.course-progress-card__header h4 { margin: 0; font-size: 14px; font-weight: 500; }
.progress-bar-wrap { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.progress-bar-fill { height: 100%; background: #2563eb; border-radius: 3px; transition: width 0.3s; }
.progress-bar-label { font-size: 12px; color: #6b7280; }

.b2c-nav-badge { margin-left: 6px; font-size: 0.65rem; background: var(--e); color: var(--gp); padding: 2px 6px; border-radius: 10px; }

.b2c-shell { min-height: 0; display: grid; grid-template-columns: 220px 1fr; background: var(--bg); }
.b2c-nav { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; border-right: 1px solid var(--rule); background: var(--wh); }
.b2c-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 0.875rem; color: var(--gm); background: none; border: none; cursor: pointer; text-align: left; font-family: 'DM Sans', sans-serif; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.b2c-nav-item:hover { background: rgba(27, 77, 62, 0.06); color: var(--gr); }
.b2c-nav-item.active { background: rgba(27, 77, 62, 0.1); color: var(--e); font-weight: 500; }
.b2c-nav-icon { font-size: 1rem; opacity: 0.7; }
.b2c-main { display: flex; flex-direction: column; overflow: hidden; }
.b2c-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-bottom: 1px solid var(--rule); background: var(--wh); }
.b2c-header-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 500; color: var(--gr); margin: 0; }
.b2c-content { flex: 1; overflow-y: auto; padding: 32px; }
.b2c-page { display: none; }
.b2c-page.active { display: block; }
.b2c-streak { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 500; color: var(--g); line-height: 1; }

/* B2C home stats & week bars */
.b2c-stats-row { display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.b2c-stat-card { background: var(--wh); border: 1px solid var(--rule); padding: 20px 24px; min-width: 120px; }
.b2c-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 500; color: var(--e); display: block; line-height: 1.2; }
.b2c-stat-label { font-size: 0.8rem; color: var(--gt); }
.b2c-week-bars-wrap { margin-bottom: 28px; }
.b2c-week-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.b2c-day { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.b2c-day-bar { width: 100%; min-height: 8px; border-radius: 4px; background: var(--e); opacity: 0.6; transition: height 0.2s; }
.b2c-day-lbl { font-size: 0.7rem; color: var(--gt); }
.b2c-week-label { font-size: 0.8rem; color: var(--gt); margin-top: 8px; }
.b2c-continue-card { background: var(--wh); border: 1px solid var(--rule); padding: 24px; }
.b2c-continue-dept { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gt); margin-bottom: 6px; }
.b2c-continue-title { font-family: 'Playfair Display', serif; font-size: 1.125rem; color: var(--gr); margin-bottom: 4px; }
.b2c-continue-meta { font-size: 0.8rem; color: var(--gt); }
.b2c-lesson-progress { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.b2c-lesson-prog-fill { height: 100%; background: var(--e); border-radius: 3px; transition: width 0.3s; }

/* B2C courses list */
.b2c-card { background: var(--wh); border: 1px solid var(--rule); padding: 24px; }
.b2c-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.b2c-card-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500; color: var(--gr); margin: 0; }
.b2c-card-count { font-size: 0.75rem; color: var(--gt); }
.b2c-course-list { display: flex; flex-direction: column; gap: 10px; }
.b2c-course-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--cr); flex-wrap: wrap; }
.b2c-course-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--e); color: var(--gp); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.b2c-course-icon-done { background: rgba(74, 222, 128, 0.15); color: #16a34a; }
.b2c-course-info { flex: 1; min-width: 0; }
.b2c-course-title { font-size: 0.875rem; font-weight: 500; color: var(--gr); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2c-course-meta { font-size: 0.72rem; color: var(--gt); margin-top: 2px; }
.b2c-badge { font-size: 0.7rem; padding: 4px 10px; border-radius: 4px; }
.b2c-badge-yellow { background: rgba(201, 160, 80, 0.15); color: var(--em); }
.b2c-badge-gray { background: rgba(122, 122, 122, 0.12); color: var(--gt); }
.b2c-badge-green { background: rgba(74, 222, 128, 0.15); color: #16a34a; }
.b2c-badge-blue { background: rgba(59, 130, 246, 0.15); color: #2563eb; }

/* B2C certificates grid */
.b2c-certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.b2c-cert-card { background: var(--wh); border: 1px solid var(--rule); overflow: hidden; }
.b2c-cert-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--rule); }
.b2c-cert-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 500; color: var(--e); }
.b2c-cert-badge { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--e); color: var(--gp); padding: 4px 10px; }
.b2c-cert-badge-junior { background: rgba(27, 77, 62, 0.15); color: var(--e); }
.b2c-cert-body { padding: 20px; }
.b2c-cert-track { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gt); margin-bottom: 6px; }
.b2c-cert-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gr); margin-bottom: 8px; }
.b2c-cert-holder { font-size: 0.875rem; color: var(--gm); margin-bottom: 4px; }
.b2c-cert-date { font-size: 0.75rem; color: var(--gt); }
.b2c-cert-footer { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--rule); }
.b2c-card-tip { background: var(--e); border-color: rgba(201, 160, 80, 0.2); }

/* B2C career ladder */
.b2c-ladder { display: flex; flex-direction: column; gap: 0; }
.b2c-rung { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.b2c-rung:last-child { border-bottom: none; }
.b2c-rung-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.b2c-rung-body { flex: 1; min-width: 0; }
.b2c-rung-level { font-size: 0.9375rem; font-weight: 500; color: var(--gr); margin-bottom: 2px; }
.b2c-rung-meta { font-size: 0.8rem; color: var(--gt); }

/* ========== UNIFIED LK — общие стили для ЛК учащегося и ЛК партнёра ========== */
.lk-shell { display: grid; grid-template-columns: 220px 1fr; height: calc(100vh - 60px); overflow: hidden; }
.lk-sidebar { background: var(--ed); border-right: 1px solid rgba(201, 160, 80, 0.1); display: flex; flex-direction: column; overflow: hidden; }
.lk-sb-logo { padding: 20px 18px 16px; border-bottom: 1px solid rgba(201, 160, 80, 0.1); }
.lk-sb-logo-text { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--gp); letter-spacing: -0.01em; }
.lk-sb-profile { padding: 14px 16px; border-bottom: 1px solid rgba(201, 160, 80, 0.08); display: flex; align-items: center; gap: 10px; }
.lk-avatar { width: 34px; height: 34px; background: linear-gradient(135deg, var(--e), var(--em)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.75rem; color: var(--gp); flex-shrink: 0; border-radius: 50%; }
.lk-sb-name { font-size: 0.8rem; font-weight: 500; color: var(--gp); }
.lk-sb-role { font-size: 0.65rem; color: rgba(237, 217, 163, 0.5); margin-top: 2px; }
.lk-sb-level { padding: 12px 16px; border-bottom: 1px solid rgba(201, 160, 80, 0.08); }
.lk-level-stars { color: var(--g); font-size: 0.875rem; margin-bottom: 3px; }
.lk-level-text { font-size: 0.72rem; color: var(--gp); font-weight: 500; margin-bottom: 7px; }
.lk-xp-bar { height: 3px; background: rgba(201, 160, 80, 0.15); overflow: hidden; margin-bottom: 4px; }
.lk-xp-fill { height: 100%; background: linear-gradient(90deg, var(--g), var(--gl)); transition: width 0.6s ease; }
.lk-xp-label { font-size: 0.62rem; color: rgba(237, 217, 163, 0.5); }
.lk-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.lk-nav::-webkit-scrollbar { width: 3px; }
.lk-nav::-webkit-scrollbar-thumb { background: rgba(201, 160, 80, 0.2); }
.lk-sb-section { padding: 10px 14px 3px; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(201, 160, 80, 0.4); font-weight: 600; }
.lk-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 14px; margin: 1px 8px; font-size: 0.8rem; color: rgba(245, 241, 232, 0.5); cursor: pointer; transition: all 0.18s; position: relative; background: none; border: none; font-family: inherit; width: 100%; text-align: left; }
.lk-nav-item:hover { color: rgba(245, 241, 232, 0.85); background: rgba(255, 255, 255, 0.04); }
.lk-nav-item.active { color: var(--gp); background: rgba(201, 160, 80, 0.1); }
.lk-nav-item.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--g); }
.lk-nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.65; }
.lk-nav-item.active .lk-nav-icon, .lk-nav-item:hover .lk-nav-icon { opacity: 1; }
.lk-nav-badge { margin-left: auto; font-size: 0.6rem; padding: 2px 6px; background: rgba(201, 160, 80, 0.2); color: var(--g); border-radius: 10px; min-width: 18px; text-align: center; }
.lk-sb-bottom { padding: 10px 12px; border-top: 1px solid rgba(201, 160, 80, 0.1); }
.lk-signout-btn { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 10px; background: none; border: none; cursor: pointer; font-size: 0.75rem; color: rgba(237, 217, 163, 0.5); font-family: 'DM Sans', sans-serif; transition: color 0.2s; }
.lk-signout-btn:hover { color: rgba(237, 217, 163, 0.85); }
.lk-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.lk-topbar { height: 52px; flex-shrink: 0; background: var(--wh); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 12px; }
.lk-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lk-drawer-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0; background: none; border: none; cursor: pointer; border-radius: 6px; }
.lk-drawer-toggle:hover { background: rgba(201, 160, 80, 0.08); }
.lk-drawer-bar { width: 18px; height: 2px; background: var(--gr); border-radius: 1px; }
.lk-topbar-title { font-family: 'Playfair Display', serif; font-size: 1.0625rem; font-weight: 500; color: var(--gr); }
.lk-topbar-sub { font-size: 0.72rem; color: var(--gt); margin-top: 1px; }
.lk-drawer-backdrop { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(15, 41, 32, 0.5); }
.lk-drawer-backdrop.open { display: block; }
.lk-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); max-width: 320px; background: var(--wh); border-right: 1px solid var(--rule); z-index: 401; transform: translateX(-100%); transition: transform 0.25s ease; overflow: hidden; display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,0.12); }
.lk-drawer.open { transform: translateX(0); }
.lk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.lk-drawer-title { font-size: 0.8rem; font-weight: 600; color: var(--gr); letter-spacing: 0.02em; }
.lk-drawer-close { width: 32px; height: 32px; background: none; border: none; font-size: 1.25rem; color: var(--gt); cursor: pointer; line-height: 1; }
.lk-drawer-close:hover { color: var(--gr); }
.lk-drawer-tree { flex: 1; overflow-y: auto; padding: 8px 0; }
.lk-drawer-empty { padding: 20px 16px; }
.b2c-no-content-msg { color: var(--gm); margin: 0 0 8px; font-size: 0.9375rem; }
.lk-tree-course { border-bottom: 1px solid var(--rule); }
.lk-tree-course:last-child { border-bottom: none; }
.lk-tree-course-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--gr); background: none; border: none; width: 100%; text-align: left; font-family: inherit; }
.lk-tree-course-head:hover { background: rgba(201, 160, 80, 0.06); }
.lk-tree-course-head .lk-tree-chevron { transition: transform 0.2s; flex-shrink: 0; }
.lk-tree-course.open .lk-tree-course-head .lk-tree-chevron { transform: rotate(90deg); }
.lk-tree-modules { display: none; padding-left: 0; }
.lk-tree-course.open .lk-tree-modules { display: block; }
.lk-tree-module { border-left: 2px solid transparent; }
.lk-tree-module-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 20px; cursor: pointer; font-size: 0.8rem; color: var(--gm); background: none; border: none; width: 100%; text-align: left; font-family: inherit; }
.lk-tree-module-head:hover { background: rgba(201, 160, 80, 0.04); }
.lk-tree-module-head .lk-tree-chevron { font-size: 0.7rem; transition: transform 0.2s; flex-shrink: 0; }
.lk-tree-module.open .lk-tree-module-head .lk-tree-chevron { transform: rotate(90deg); }
.lk-tree-lessons { display: none; }
.lk-tree-module.open .lk-tree-lessons { display: block; }
.lk-tree-topic { border-left: 2px solid transparent; }
.lk-tree-topic-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 32px; cursor: pointer; font-size: 0.74rem; color: var(--gt); background: none; border: none; width: 100%; text-align: left; font-family: inherit; letter-spacing: 0.06em; text-transform: uppercase; }
.lk-tree-topic-head:hover { background: rgba(201, 160, 80, 0.04); color: var(--gm); }
.lk-tree-topic-meta { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--gt); opacity: .8; }
.lk-tree-topic-head .lk-tree-chevron { font-size: 0.7rem; transition: transform 0.2s; flex-shrink: 0; }
.lk-tree-topic.open .lk-tree-topic-head .lk-tree-chevron { transform: rotate(90deg); }
.lk-tree-topic-lessons { display: none; }
.lk-tree-topic.open .lk-tree-topic-lessons { display: block; }
.lk-tree-lesson { padding: 8px 14px 8px 32px; font-size: 0.78rem; color: var(--gt); cursor: pointer; border-left: 2px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.lk-tree-lesson:hover { background: rgba(201, 160, 80, 0.06); color: var(--gr); }
.lk-tree-lesson.done { color: var(--e); }
.lk-lesson-check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; color: var(--e); font-size: 0.75rem; }
.lk-tree-lesson.done .lk-lesson-check { background: rgba(27, 77, 62, 0.08); border-color: rgba(27, 77, 62, 0.35); }
.lk-lesson-txt { flex: 1; min-width: 0; }
.lk-lesson-title { font-size: 0.78rem; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-lesson-sub { font-size: 0.68rem; color: var(--gt); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-lesson-meta { flex: 0 0 auto; font-size: 0.68rem; color: var(--gt); opacity: .85; margin-top: 1px; }
.lk-tree-chevron { color: var(--gt); font-size: 0.75rem; }
@media (min-width: 901px) {
  .lk-drawer-toggle { display: flex; }
  .lk-drawer-toggle .lk-drawer-bar { width: 16px; }
}
@media (max-width: 900px) {
  .lk-drawer { top: 0; }
}
.lk-content { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg); }
.lk-content::-webkit-scrollbar { width: 4px; }
.lk-content::-webkit-scrollbar-thumb { background: rgba(201, 160, 80, 0.2); }
.lk-page { display: none; }
.lk-page.active { display: block; animation: pgIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.lk-card { background: var(--wh); border: 1px solid var(--rule); padding: 20px 22px; margin-bottom: 16px; }
.lk-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.lk-card-title { font-family: 'Playfair Display', serif; font-size: 0.9375rem; font-weight: 500; color: var(--gr); }
.lk-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 17px; font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap; }
.lk-btn-primary { background: var(--e); color: var(--gp); }
.lk-btn-primary:hover { background: var(--ed); }
.lk-btn-outline { background: transparent; border: 1px solid var(--rule); color: var(--gm); }
.lk-btn-outline:hover { border-color: var(--g); color: var(--gr); }
.lk-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.lk-stat { background: var(--wh); border: 1px solid var(--rule); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.lk-stat-icon { font-size: 1.25rem; margin-bottom: 4px; }
.lk-stat-num { font-family: 'Playfair Display', serif; font-size: 1.625rem; font-weight: 500; color: var(--gr); line-height: 1; }
.lk-stat-lbl { font-size: 0.7rem; color: var(--gt); }
.lk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lk-week-bars { display: flex; align-items: flex-end; gap: 6px; min-height: 88px; padding-top: 8px; box-sizing: border-box; }
.lk-week-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.lk-week-bar-col { flex-shrink: 0; }
.lk-week-bar { width: 100%; background: linear-gradient(180deg, var(--em), var(--e)); min-height: 2px; transition: height 0.6s ease; border-radius: 3px 3px 0 0; }
.lk-week-bar.today { background: linear-gradient(180deg, var(--gl), var(--g)); }
.lk-week-lbl { font-size: 0.6rem; color: var(--gt); }
.lk-progress { height: 4px; background: var(--rule); overflow: hidden; }
.lk-progress-fill { height: 100%; background: linear-gradient(90deg, var(--e), var(--em)); transition: width 0.5s ease; }
.lk-course-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--rule); transition: all 0.18s; cursor: pointer; }
.lk-course-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; flex-shrink: 0; max-width: 100%; }
.lk-course-row + .lk-course-row { margin-top: 8px; }
.lk-course-row:hover { border-color: var(--g); background: rgba(201, 160, 80, 0.04); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(27, 77, 62, 0.06); }
.lk-course-row:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; border-color: var(--g); }
.lk-course-row:active { transform: translateY(0); }
/* Coming-soon состояние: неактивный курс, без клика, приглушённый вид */
.lk-course-row--coming-soon { cursor: not-allowed; opacity: 0.62; background: rgba(122, 122, 122, 0.02); border-style: dashed; }
.lk-course-row--coming-soon:hover { border-color: var(--rule); background: rgba(122, 122, 122, 0.04); transform: none; box-shadow: none; }
.lk-course-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lk-badge { display: inline-flex; align-items: center; padding: 3px 9px; font-size: 0.67rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; flex-shrink: 0; }
.lk-badge-green { background: rgba(74, 222, 128, 0.12); color: #16a34a; }
.lk-badge-yellow { background: rgba(201, 160, 80, 0.15); color: #92650a; }
.lk-badge-gray { background: rgba(122, 122, 122, 0.1); color: var(--gt); }
.lk-badge-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.lk-card-action { background: none; border: none; font-size: 0.8rem; color: var(--e); cursor: pointer; padding: 4px 0; font-family: inherit; }
.lk-card-action:hover { text-decoration: underline; }

/* Partner Dashboard */
.lk-hotel-picker { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(201,160,80,.08); cursor: pointer; transition: background .2s; }
.lk-hotel-picker:hover { background: rgba(255,255,255,.04); }
.lk-hotel-dropdown { display: none; background: var(--em); border-bottom: 1px solid rgba(201,160,80,.1); }
.lk-hotel-dropdown.open { display: block; }
.lk-hotel-dropdown-item { padding: 10px 16px; font-size: .8rem; color: rgba(237,217,163,.6); cursor: pointer; border-bottom: 1px solid rgba(201,160,80,.06); transition: all .15s; }
.lk-hotel-dropdown-item:hover, .lk-hotel-dropdown-item.active { background: rgba(201,160,80,.1); color: var(--gp); }
.lk-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.lk-table th { text-align: left; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gt); padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.lk-table td { padding: 12px 12px; border-bottom: 1px solid var(--rule); color: var(--gm); }
.lk-table tr:last-child td { border-bottom: none; }
.lk-table tr:hover td { background: rgba(201,160,80,.03); }
.lk-form-row { margin-bottom: 14px; }
.lk-form-label { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gt); margin-bottom: 7px; }
.lk-form-input { width: 100%; padding: 10px 13px; border: 1px solid var(--rule); background: var(--cr); font-family: 'DM Sans', sans-serif; font-size: .875rem; color: var(--gr); outline: none; transition: border-color .2s; }
.lk-form-input:focus { border-color: var(--e); }

.lk-cert-card { background: var(--wh); border: 1px solid var(--rule); overflow: hidden; }
.lk-cert-header { background: var(--ed); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.lk-cert-logo { font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--gp); letter-spacing: 0.08em; }
.lk-cert-type { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; background: var(--g); color: var(--ed); }
.lk-cert-body { padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.lk-cert-dept { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g); margin-bottom: 5px; }
.lk-cert-title { font-family: 'Playfair Display', serif; font-size: 0.9375rem; color: var(--gr); margin-bottom: 6px; }
.lk-cert-holder { font-size: 0.8rem; font-weight: 500; color: var(--gr); }
.lk-cert-date { font-size: 0.72rem; color: var(--gt); margin-top: 3px; }
.lk-cert-footer { padding: 13px 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.lk-ladder { display: flex; flex-direction: column; }
.lk-rung { display: flex; gap: 13px; padding: 13px 0 13px 34px; position: relative; }
.lk-rung::before { content: ''; position: absolute; left: 11px; top: 35px; width: 2px; height: calc(100% - 20px); background: var(--rule); }
.lk-rung:last-child::before { display: none; }
.lk-rung-dot { position: absolute; left: 0; top: 13px; width: 23px; height: 23px; border: 2px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--gt); background: var(--wh); border-radius: 50%; }
.lk-rung-dot.done { background: var(--e); border-color: var(--e); color: var(--gp); }
.lk-rung-dot.active { border-color: var(--e); color: var(--e); }
.lk-rung-level { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gt); margin-bottom: 3px; }
.lk-rung-meta { font-size: 0.72rem; color: var(--gt); margin-top: 2px; }
@media (max-width: 900px) {
  .lk-shell { grid-template-columns: 1fr; }
  .lk-sidebar { display: none; }
  .lk-stats-row { grid-template-columns: 1fr 1fr; }
  .lk-grid-2 { grid-template-columns: 1fr; }
  .lk-mob-signout { display: flex; }
}
.lk-mob-signout { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; background: none; border: 1px solid rgba(201,160,80,0.25); cursor: pointer; color: rgba(237,217,163,0.6); border-radius: 2px; transition: color 0.2s, border-color 0.2s; flex-shrink: 0; }
.lk-mob-signout:hover { color: rgba(237,217,163,0.9); border-color: rgba(201,160,80,0.5); }

.b2c-lesson-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(15, 41, 32, 0.9); display: none; align-items: center; justify-content: center; padding: 24px; }
.b2c-lesson-overlay.open { display: flex; }
.b2c-lesson-inner {
  background: var(--wh);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  height: 90vh;
  overflow: hidden;
  padding: 32px;
  padding-top: 28px;
  position: relative;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.b2c-lesson-segments {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 0 14px;
  margin: 0 -4px 4px;
  border-bottom: 1px solid var(--rule);
}
.b2c-lesson-segments[hidden] { display: none !important; }
.b2c-lesson-seg {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(27, 77, 62, 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gm);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.b2c-lesson-seg:hover { border-color: rgba(201, 160, 80, 0.45); color: var(--gr); }
.b2c-lesson-seg.active {
  background: rgba(201, 160, 80, 0.14);
  border-color: rgba(201, 160, 80, 0.45);
  color: var(--gr);
}
.b2c-lesson-seg-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(27, 77, 62, 0.12);
  color: var(--e);
  vertical-align: middle;
}
.b2c-lesson-seg.active .b2c-lesson-seg-badge { background: rgba(27, 77, 62, 0.18); }
.b2c-lesson-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.b2c-lesson-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 16px;
}
.b2c-lesson-panel[hidden] { display: none !important; }
.b2c-lesson-prevnext {
  flex-shrink: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
}
.b2c-lesson-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: none; border: none; font-size: 1.5rem; color: var(--gt); cursor: pointer; line-height: 1; }
.b2c-lesson-close:hover { color: var(--gr); }
.b2c-lesson-theater { position: absolute; top: 16px; right: 56px; width: 36px; height: 36px; background: none; border: 1px solid var(--rule); border-radius: 10px; font-size: 1rem; color: var(--gt); cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.b2c-lesson-theater:hover { color: var(--gr); border-color: rgba(201,160,80,.5); }

.b2c-lesson-overlay.theater { padding: 0; background: rgba(15, 41, 32, 0.96); }
.b2c-lesson-overlay.theater .b2c-lesson-inner { max-width: 980px; width: 100%; height: 100vh; max-height: 100vh; border: none; border-radius: 0; padding: 28px 28px 34px; }
.b2c-lesson-overlay.theater .b2c-lesson-body { font-size: 1rem; line-height: 1.75; }

/* ── Gamification: Badges ────────────────────────────────────── */
.b2c-badges-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0; }
.b2c-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 72px;
  cursor: default;
  transition: transform .15s;
}
.b2c-badge-item:hover { transform: scale(1.08); }
.b2c-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,160,80,.10);
  border: 1px solid rgba(201,160,80,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}
.b2c-badge-label {
  font-size: .65rem;
  color: var(--gt);
  text-align: center;
  line-height: 1.3;
  max-width: 68px;
  word-break: break-word;
}

/* ── AI Tutor Widget ─────────────────────────────────────────── */
.b2c-tutor-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--e);
  color: var(--gp);
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(27,77,62,.35);
  border: none;
  transition: transform .15s, box-shadow .15s;
  user-select: none;
}
.b2c-lesson-overlay.open ~ .b2c-tutor-bubble,
.b2c-tutor-bubble.visible { display: flex; }
.b2c-tutor-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(27,77,62,.45); }
.b2c-tutor-panel {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 400;
  width: 320px;
  max-height: 420px;
  background: var(--wh);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,41,32,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.b2c-tutor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--e);
}
.b2c-tutor-close { background: none; border: none; font-size: 1.25rem; color: var(--gt); cursor: pointer; line-height: 1; padding: 0; }
.b2c-tutor-close:hover { color: var(--gr); }
.b2c-tutor-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
}
.b2c-tutor-msg { font-size: .8rem; line-height: 1.55; border-radius: 10px; padding: 8px 12px; max-width: 90%; }
.b2c-tutor-msg.user { background: rgba(27,77,62,.08); color: var(--gr); align-self: flex-end; }
.b2c-tutor-msg.bot { background: rgba(201,160,80,.1); color: var(--gm); align-self: flex-start; }
.b2c-tutor-msg.loading { color: var(--gt); font-style: italic; }
.b2c-tutor-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}
.b2c-tutor-input {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .8rem;
  font-family: inherit;
  color: var(--gm);
  background: var(--bg);
  outline: none;
}
.b2c-tutor-input:focus { border-color: rgba(201,160,80,.5); }
.b2c-tutor-send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--e);
  color: var(--gp);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.b2c-tutor-send:hover { background: var(--g); }
@media (max-width: 600px) {
  .b2c-tutor-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
  .b2c-tutor-bubble { bottom: 20px; right: 16px; }
}
.b2c-quiz-panel-inner { padding-top: 4px; }
.b2c-quiz-stack-head {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 18px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .b2c-lesson-inner { padding: 20px 16px 22px; max-height: 92vh; height: 92vh; }
  .b2c-lesson-seg { font-size: 0.72rem; padding: 9px 8px; }
}
.b2c-lesson-overlay.theater .b2c-level-tabs { position: sticky; top: 0; background: var(--wh); padding-top: 8px; padding-bottom: 10px; margin-top: -8px; z-index: 2; }

.b2c-player-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.b2c-lesson-opts .b2c-opt-correct { border-color: var(--e); background: rgba(27, 77, 62, 0.08); color: var(--e); }
.b2c-lesson-opts .b2c-opt-wrong { border-color: #dc2626; background: rgba(220, 38, 38, 0.06); color: #b91c1c; }
.b2c-answer-feedback { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
.b2c-feedback-badge { display: inline-block; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; border-radius: 6px; margin-bottom: 12px; }
.b2c-feedback-correct { background: rgba(27, 77, 62, 0.12); color: var(--e); }
.b2c-feedback-wrong { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.b2c-feedback-explain, .b2c-feedback-correct-answer { font-size: 0.875rem; color: var(--gm); line-height: 1.5; margin: 0 0 10px; }
.b2c-feedback-next { margin-top: 12px; }
.b2c-level-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.b2c-level-tab { padding: 7px 10px; border: 1px solid var(--rule); background: transparent; font-size: 0.75rem; color: var(--gm); cursor: pointer; border-radius: 8px; font-family: 'DM Sans', sans-serif; }
.b2c-level-tab:hover { border-color: rgba(201,160,80,.5); color: var(--gr); }
.b2c-level-tab.active { background: rgba(201,160,80,.12); border-color: rgba(201,160,80,.35); color: var(--gr); font-weight: 600; }
.b2c-level-tab.locked { opacity: 0.55; cursor: not-allowed; }
.b2c-level-tab.locked:hover { border-color: var(--rule); color: var(--gm); }
.b2c-player-actions .lk-btn { flex: 0 0 auto; }
.b2c-player-complete { padding-top: 4px; }

/* Урок завершён — короткое «празднование» (Duolingo-style) */
.b2c-celebration {
  position: relative;
  text-align: center;
  padding: 8px 8px 4px;
  overflow: hidden;
}
.b2c-celebration-burst {
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background:
    radial-gradient(circle at 20% 60%, rgba(201, 160, 80, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 75% 40%, rgba(74, 222, 128, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 35%);
  animation: b2c-celebration-glow 1.4s ease-out forwards;
}
@keyframes b2c-celebration-glow {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.b2c-celebration-check {
  position: relative;
  z-index: 1;
  animation: b2c-celebration-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 8px 28px rgba(27, 77, 62, 0.25);
}
@keyframes b2c-celebration-pop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.b2c-celebration .t-h3 {
  animation: b2c-celebration-fade 0.5s ease 0.15s both;
}
@keyframes b2c-celebration-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Завершение уровня — модальное окно поверх оверлея урока */
.b2c-level-complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 41, 32, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: b2c-level-overlay-in 0.35s ease-out;
}
.b2c-level-complete-overlay.open {
  display: flex;
}
@keyframes b2c-level-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.b2c-level-complete-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--wh);
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(15, 41, 32, 0.35);
  text-align: center;
  overflow: hidden;
}
.b2c-level-complete-card .b2c-celebration-burst {
  inset: -50% -30% auto;
  height: 140px;
}
.b2c-level-complete-badge {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(145deg, rgba(201, 160, 80, 0.35), rgba(27, 77, 62, 0.15));
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 80, 0.45);
  animation: b2c-celebration-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.b2c-level-complete-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--gr);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}
.b2c-level-complete-p {
  font-size: 0.875rem;
  color: var(--gm);
  line-height: 1.55;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.b2c-level-complete-score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--e);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.b2c-level-complete-score--muted {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--gt);
}
.b2c-level-complete-certline {
  font-size: 0.8125rem;
  color: var(--gm);
  line-height: 1.5;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.b2c-level-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.b2c-level-complete-actions .lk-btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 900px) {
  .b2c-cabinet { grid-template-columns: 1fr; }
  .b2c-sidebar { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px; }
  .b2c-profile-block { display: flex; align-items: center; gap: 16px; text-align: left; }
  .b2c-avatar { margin: 0; }
  .b2c-shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .b2c-nav { flex-direction: row; justify-content: space-around; border-right: none; border-top: 1px solid var(--rule); padding: 12px 8px; }
  .b2c-nav-item span:not(.b2c-nav-icon) { display: none; }
  .b2c-nav-item { flex-direction: column; gap: 4px; padding: 8px 12px; font-size: 0.65rem; }
  .b2c-nav-icon { font-size: 1.25rem; }
}

/* Blog search */
.blog-search-section { padding-top: 20px; padding-bottom: 8px; }
.blog-search-label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gt); margin-bottom: 10px; }
.blog-search-input {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--gr);
  background: var(--wh);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-input:focus { outline: none; border-color: rgba(27, 77, 62, 0.45); box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.08); }
.blog-search-results { margin-top: 16px; padding-bottom: 8px; }
.blog-search-results[hidden] { display: none !important; }
.blog-search-count { font-size: 0.8125rem; color: var(--gt); margin-bottom: 12px; }
.blog-search-empty { font-size: 0.875rem; color: var(--gm); padding: 12px 0; }
.blog-search-list { list-style: none; margin: 0; padding: 0; }
.blog-search-item { margin-bottom: 10px; }
.blog-search-hit {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-hit:hover { border-color: rgba(201, 160, 80, 0.45); box-shadow: 0 4px 20px rgba(27, 77, 62, 0.06); }
.blog-search-hit-title { display: block; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 500; color: var(--gr); margin-bottom: 6px; line-height: 1.3; }
.blog-search-hit-meta { display: block; font-size: 0.72rem; color: var(--gt); margin-bottom: 8px; }
.blog-search-hit-snippet { display: block; font-size: 0.8125rem; color: var(--gm); line-height: 1.55; }
@media (max-width: 900px) { .blog-search-section { padding-top: 16px; } }

/* Blog category nav */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--rule); padding: 0 64px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 0; white-space: nowrap; }
.cat-btn { padding: 14px 20px; font-size: 0.78rem; color: var(--gt); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; letter-spacing: 0.04em; margin-bottom: -1px; }
.cat-btn:hover { color: var(--gr); }
.cat-btn.active { color: var(--e); border-bottom-color: var(--g); font-weight: 500; }
@media (max-width: 900px) { .cat-nav { padding: 0 24px; } }

/* Featured post */
.featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--rule); margin-bottom: 48px; overflow: hidden; cursor: pointer; transition: box-shadow 0.3s; }
.featured-post:hover { box-shadow: 0 12px 48px rgba(27, 77, 62, 0.1); }
.featured-img { background: var(--e); min-height: 280px; position: relative; display: flex; align-items: flex-end; }
.featured-img--photo { padding: 0; overflow: hidden; align-items: stretch; background: #1a2a24; }
.featured-img--photo .featured-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.featured-img--photo .featured-img-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
  padding: 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 41, 32, 0.55) 35%, rgba(12, 35, 28, 0.92) 100%);
}
.featured-img-content { position: relative; z-index: 2; padding: 32px; }
.featured-img-badge { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--g); color: var(--ed); padding: 4px 12px; display: inline-block; margin-bottom: 16px; }
.featured-img-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500; color: var(--gp); line-height: 1.25; }
.featured-body { padding: 44px; }
.feat-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.feat-excerpt { font-size: 0.9375rem; color: var(--gm); line-height: 1.72; font-weight: 300; margin-bottom: 24px; }
.feat-meta { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.meta-avatar { width: 34px; height: 34px; background: linear-gradient(135deg, var(--e), var(--em)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.75rem; color: var(--gp); flex-shrink: 0; }
.meta-name { font-size: 0.8rem; font-weight: 500; color: var(--gr); }
.meta-date { font-size: 0.75rem; color: var(--gt); }
.feat-read-time { margin-left: auto; font-size: 0.72rem; color: var(--gt); }
@media (max-width: 768px) { .featured-post { grid-template-columns: 1fr; } .featured-img { min-height: 200px; } }

/* Post grid & cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--white); border: 1px solid var(--rule); overflow: hidden; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(27, 77, 62, 0.09); }
.post-thumb { height: 160px; position: relative; display: flex; align-items: flex-end; }
.post-thumb--photo { padding: 0; overflow: hidden; }
.post-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ed);
  padding: 5px 11px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
html[dir="rtl"] .post-thumb-label { left: auto; right: 16px; }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-category { font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.post-title { font-family: 'Playfair Display', serif; font-size: 1.0625rem; font-weight: 500; color: var(--gr); line-height: 1.3; margin-bottom: 12px; }
.post-excerpt { font-size: 0.8125rem; color: var(--gt); line-height: 1.6; font-weight: 300; flex: 1; margin-bottom: 16px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); }
.post-author-sm { display: flex; align-items: center; gap: 8px; }
.avatar-xs { width: 26px; height: 26px; background: linear-gradient(135deg, var(--e), var(--em)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.6rem; color: var(--gp); flex-shrink: 0; }
.post-author-name { font-size: 0.72rem; color: var(--gm); }
.post-date { font-size: 0.7rem; color: var(--gt); }
.post-read { font-size: 0.7rem; color: var(--gt); }

/* Blog layout & sidebar */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
@media (max-width: 1000px) { .blog-layout { grid-template-columns: 1fr; } }
.sidebar-sticky { position: sticky; top: 80px; }
.sidebar-card { background: var(--white); border: 1px solid var(--rule); padding: 24px; margin-bottom: 20px; }
.sidebar-title { font-family: 'Playfair Display', serif; font-size: 0.875rem; font-weight: 500; color: var(--gr); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.sidebar-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(201, 160, 80, 0.07); cursor: pointer; transition: all 0.2s; }
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover .sidebar-post-title { color: var(--e); }
.sidebar-post-thumb { width: 52px; height: 44px; flex-shrink: 0; background: var(--e); border-radius: 6px; overflow: hidden; }
.sidebar-post-thumb--photo { padding: 0; background: #1a2a24; }
.sidebar-post-thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-post-title { font-size: 0.78rem; font-weight: 500; color: var(--gr); line-height: 1.3; margin-bottom: 3px; transition: color 0.2s; }
.sidebar-post-meta { font-size: 0.68rem; color: var(--gt); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.68rem; padding: 4px 10px; border: 1px solid var(--rule); color: var(--gt); cursor: pointer; transition: all 0.2s; background: none; font-family: 'DM Sans', sans-serif; }
.tag:hover { border-color: var(--g); color: var(--gr); }
.tag.active { border-color: var(--e); color: var(--e); font-weight: 500; background: rgba(27, 77, 62, 0.06); }
.blog-cta-block { background: var(--e); padding: 24px; border-top: 3px solid var(--g); }
.blog-cta-text { font-family: 'Playfair Display', serif; font-size: 0.9375rem; color: var(--gp); margin-bottom: 8px; }
.blog-cta-sub { font-size: 0.775rem; color: rgba(255, 248, 238, 0.85); margin-bottom: 20px; line-height: 1.55; }
.blog-cta-block .btn { width: 100%; justify-content: center; }

/* Newsletter */
.newsletter { background: var(--cream); border: 1px solid var(--rule); padding: 36px; margin-top: 60px; text-align: center; }
.nl-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--gr); margin-bottom: 8px; }
.nl-sub { font-size: 0.8rem; color: var(--gt); margin-bottom: 24px; }
.nl-form { display: flex; gap: 0; max-width: 400px; margin: 0 auto; }
@media (max-width: 480px) { .nl-form { flex-direction: column; max-width: 100%; } .nl-btn { width: 100%; } }
.nl-input { flex: 1; padding: 12px 16px; border: 1px solid var(--rule); background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.875rem; color: var(--gr); outline: none; min-width: 0; }
.nl-input:focus { border-color: var(--e); }
.nl-btn { background: var(--e); color: var(--gp); border: none; padding: 12px 22px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; transition: background 0.2s; white-space: nowrap; min-height: 44px; }
.nl-btn:hover { background: var(--ed); }

/* Article overlay */
.article-overlay { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.article-overlay.open { transform: translateX(0); }
.article-nav { position: sticky; top: 0; z-index: 10; background: rgba(240, 237, 228, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); padding: 8px 64px; min-height: 56px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-nav-start { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.art-back { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gm); cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; transition: color 0.2s, background 0.2s, border-color 0.2s; padding: 10px 0; min-height: 44px; }
.art-back:hover { color: var(--gr); }
.art-back--primary {
  padding: 10px 16px;
  background: rgba(27, 77, 62, 0.06);
  border: 1px solid rgba(201, 160, 80, 0.35);
  border-radius: 10px;
  font-weight: 600;
  color: var(--gr);
}
.art-back--primary:hover {
  background: rgba(201, 160, 80, 0.12);
  border-color: var(--g);
  color: var(--gr);
}
.art-back--ghost {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-weight: 500;
  color: var(--gm);
  background: var(--white);
}
.art-back--ghost:hover {
  border-color: var(--g);
  color: var(--gr);
  background: rgba(27, 77, 62, 0.04);
}
.article-toolbar { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.article-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}
.article-rating-block { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 0.72rem; color: var(--gm); }
.article-stars-outer { position: relative; display: inline-block; line-height: 1; font-size: 0.88rem; letter-spacing: 0.06em; }
.article-stars-bg { color: rgba(0, 0, 0, 0.14); }
.article-stars-fg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #b8923f;
  width: 0;
}
.article-rating-val { font-weight: 600; color: var(--gr); font-size: 0.78rem; }
.article-rating-votes { color: var(--gt); font-size: 0.72rem; }
.article-rating-note { font-size: 0.62rem; color: var(--gt); text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; }
.art-share-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 160, 80, 0.45);
  background: rgba(27, 77, 62, 0.06);
  color: var(--gr);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  min-height: 36px;
  transition: background 0.2s, border-color 0.2s;
}
.art-share-btn:hover { background: rgba(201, 160, 80, 0.12); border-color: var(--g); }
.article-share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(201, 160, 80, 0.12);
}
.article-share-strip--top {
  margin-top: 4px;
  margin-bottom: 28px;
}
.article-share-strip--bottom {
  margin-top: 40px;
  margin-bottom: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: none;
}
.article-share-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gt);
  font-weight: 600;
  width: 100%;
}
.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.article-share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border-radius: 8px;
  border: 1px solid rgba(201, 160, 80, 0.45);
  background: rgba(27, 77, 62, 0.08);
  color: var(--gr);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}
.article-share-pill:hover {
  background: rgba(201, 160, 80, 0.14);
  border-color: var(--g);
  color: var(--ed);
}
.article-share-pill--quiet {
  background: var(--white);
  border-color: var(--rule);
  font-weight: 500;
  color: var(--gm);
}
.article-share-pill--quiet:hover {
  border-color: var(--g);
  color: var(--gr);
}
html[dir="rtl"] .article-share-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .article-toolbar-inner { justify-content: flex-start; }
html[dir="rtl"] .article-nav-start { flex-direction: row-reverse; }
#article-content { padding-bottom: 0; }
.article-discussion {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 64px 100px;
  border-top: 1px solid var(--rule);
  background: var(--wh);
}
.article-discussion-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: stretch;
}
.article-discussion-nav .article-back-bottom {
  width: auto;
  flex: 1 1 200px;
  margin-bottom: 0;
  min-height: 48px;
  font-size: 0.875rem;
}
.article-back-bottom {
  width: 100%;
  margin-bottom: 28px;
  min-height: 48px;
  font-size: 0.875rem;
}
.article-discussion-details {
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.article-discussion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 22px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gr);
  background: var(--cr);
  list-style: none;
  user-select: none;
}
.article-discussion-summary::-webkit-details-marker { display: none; }
.article-discussion-summary .discussion-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
  color: var(--gm);
}
.article-discussion-details[open] .discussion-chevron { transform: rotate(180deg); }
.article-discussion-card {
  background: var(--cr);
  padding: 6px 22px 28px;
}
.article-discussion-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gr);
  margin: 0 0 12px;
}
.article-discussion-lead {
  font-size: 0.875rem;
  color: var(--gm);
  line-height: 1.65;
  margin: 0 0 16px;
}
.article-discussion-prompts {
  margin: 0 0 16px 1.1rem;
  padding: 0;
  font-size: 0.875rem;
  color: var(--gm);
  line-height: 1.65;
}
.article-discussion-prompts li { margin-bottom: 8px; }
.article-discussion-note {
  font-size: 0.72rem;
  color: var(--gt);
  margin: 0 0 16px;
  line-height: 1.5;
}
.article-discussion-articlelink { font-size: 0.8125rem; color: var(--gm); line-height: 1.55; margin: 0 0 16px; }
.article-discussion-articlelink-label { font-weight: 600; color: var(--gr); }
.article-discussion-articletitle { font-style: normal; font-weight: 600; color: var(--gr); }
.article-discussion-url { color: var(--e); word-break: break-all; }
.article-discussion-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gr);
  margin: 14px 0 6px;
}
.article-discussion-field-label:first-of-type { margin-top: 4px; }
.article-discussion-field {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--gr);
  background: var(--wh);
}
.article-discussion-field:focus { outline: none; border-color: rgba(27, 77, 62, 0.45); box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.08); }
.article-discussion-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--gr);
  background: var(--wh);
  margin-bottom: 12px;
  resize: vertical;
  min-height: 100px;
}
.article-discussion-submit {
  background: var(--e);
  color: var(--gp);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}
.article-discussion-submit:hover { background: var(--ed); }
.article-discussion-submit:disabled { opacity: 0.65; cursor: not-allowed; }
@media (max-width: 900px) {
  .article-discussion { padding: 20px 24px 80px; }
}
@media (max-width: 768px) {
  .article-discussion { padding: 20px 20px 72px; }
  .article-discussion-card { padding: 18px 16px 22px; }
}
html[dir="rtl"] .article-discussion-prompts { margin-right: 1.1rem; margin-left: 0; }
.art-progress { flex: 1; height: 2px; background: var(--rule); overflow: hidden; }
.art-progress-fill { height: 100%; background: var(--g); width: 0%; transition: width 0.1s; }
.article-content { max-width: 760px; margin: 0 auto; padding: 60px 64px 100px; }
@media (max-width: 900px) { .article-content { padding: 40px 24px 80px; } .article-nav { padding: 0 24px; } }
@media (max-width: 768px) {
  .article-content { padding: 32px 20px 80px; }
  .article-content p { font-size: 0.875rem; }
  .article-content h2 { font-size: 1.25rem; margin: 32px 0 12px; }
  .article-nav { padding: 0 20px; }
}
.art-cat { font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.art-cat::before { content: ''; display: block; width: 20px; height: 1px; background: var(--g); }
.art-title { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 500; color: var(--gr); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.art-lead { font-size: 1.1rem; color: var(--gm); line-height: 1.72; font-weight: 300; margin-bottom: 32px; border-left: 2px solid var(--g); padding-left: 20px; }
.art-meta { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 48px; }
.art-meta-author { display: flex; align-items: flex-start; gap: 12px; }
.art-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--e), var(--em)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.8rem; color: var(--gp); flex-shrink: 0; }
.art-avatar--photo { padding: 0; overflow: hidden; border-radius: 50%; background: var(--e); }
.art-avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-author-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.art-author-name { font-size: 0.8125rem; font-weight: 500; color: var(--gr); }
.art-author-role { font-size: 0.72rem; color: var(--gt); line-height: 1.45; }
.art-author-linkedin { display: inline-flex; align-items: center; color: #0a66c2; text-decoration: none; margin-top: 4px; }
.art-author-linkedin:hover { color: #004182; }
.art-author-linkedin-icon { display: block; }
html[dir="rtl"] .art-author-text { align-items: flex-end; text-align: right; }
.meta-avatar--photo,
.avatar-xs--photo { padding: 0; overflow: hidden; border-radius: 50%; background: var(--e); flex-shrink: 0; }
.meta-avatar--photo img,
.avatar-xs--photo img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: middle; }
.article-author-footer {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 24px 64px 0;
  border-top: 1px solid var(--rule);
}
.article-author-footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gr);
  margin: 0 0 12px;
}
.article-author-footer-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gm);
  margin: 0 0 16px;
}
.article-author-footer-li {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--e);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(27, 77, 62, 0.35);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.article-author-footer-li:hover {
  background: rgba(27, 77, 62, 0.06);
  border-color: var(--g);
  color: var(--ed);
}
@media (max-width: 900px) {
  .article-author-footer { padding: 24px 24px 0; margin-top: 40px; }
}
@media (max-width: 600px) {
  .article-author-footer { padding: 20px 20px 0; }
}
.art-meta-right { margin-left: auto; text-align: right; font-size: 0.72rem; color: var(--gt); }
.article-content p { font-size: 0.9375rem; line-height: 1.78; color: var(--gm); margin-bottom: 24px; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500; color: var(--gr); margin: 48px 0 16px; }
.article-content blockquote { margin: 36px 0; padding: 24px 28px; border-left: 3px solid var(--g); background: rgba(201, 160, 80, 0.04); }
.article-content blockquote p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.0625rem; color: var(--gr); margin: 0; line-height: 1.65; }
.article-content blockquote cite { display: block; font-size: 0.75rem; color: var(--gt); margin-top: 10px; font-style: normal; }
@media (max-width: 768px) {
  .article-content p { font-size: 0.875rem; }
  .article-content h2 { font-size: 1.25rem; margin: 32px 0 12px; }
}

.article-content .art-figure { margin: 28px 0; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.04); }
.article-content .art-figure img { width: 100%; height: auto; display: block; vertical-align: middle; }
.blog-infographic {
  margin: 32px 0;
  padding: 20px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 160, 80, 0.08), rgba(27, 77, 62, 0.06));
  border: 1px solid rgba(201, 160, 80, 0.18);
}
.blog-infographic-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.blog-infographic-cell {
  text-align: center;
  padding: 10px 6px;
}
.blog-infographic-val {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
.blog-infographic-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--gm);
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .blog-infographic-inner { grid-template-columns: 1fr; gap: 12px; }
  .blog-infographic { padding: 16px 14px; }
}

/* RTL & language-specific */
html[dir="rtl"] .hero-left { padding: 140px 0 80px 72px; }
html[dir="rtl"] .section-label { flex-direction: row-reverse; }
html[dir="rtl"] .section-label::before { display: none; }
html[dir="rtl"] .section-label::after { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
html[dir="rtl"] .b2c-testimonial, html[dir="rtl"] .b2b-testimonial { border-left: none; border-right: 2px solid var(--gold); }
html[dir="rtl"] .footer-top { direction: rtl; }
html[dir="rtl"] #b2c::before { left: auto; right: 0; }
html[dir="rtl"] .modal-close { right: auto; left: 20px; }
html[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); border-left: none; border-right: 1px solid var(--rule); }
html[dir="rtl"] .drawer-overlay.open .drawer { transform: translateX(0); }
html[dir="rtl"] .chat-fab { right: auto; left: 32px; }
html[dir="rtl"] .chat-window { right: auto; left: 32px; transform-origin: bottom left; }

/* RTL — hero enhancements */
html[dir="rtl"] .hero-headline { text-align: right; }
html[dir="rtl"] .hero-sub { text-align: right; }
html[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
html[dir="rtl"] .eyebrow-rule { margin-left: 12px; margin-right: 0; }
html[dir="rtl"] .hero-ctas { align-items: flex-end; }
html[dir="rtl"] .trust-bar { text-align: right; }
html[dir="rtl"] .trust-item { flex-direction: row-reverse; }
html[dir="rtl"] .trust-mark { margin-left: 10px; margin-right: 0; }
html[dir="rtl"] .scroll-cue { align-items: flex-end; }

/* RTL — navigation */
html[dir="rtl"] .spa-nav-inner { flex-direction: row-reverse; }
html[dir="rtl"] .spa-nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .spa-nav-right { flex-direction: row-reverse; }

/* RTL — B2C learner cabinet */
html[dir="rtl"] .lk-sidebar { border-right: none; border-left: 1px solid var(--rule); }
html[dir="rtl"] .lk-progress-fill { transform-origin: right; }
html[dir="rtl"] .b2c-lesson-body { text-align: right; direction: rtl; }
html[dir="rtl"] .b2c-lesson-body ul,
html[dir="rtl"] .b2c-lesson-body ol { padding-left: 0; padding-right: 20px; }

/* RTL — quote mark */
html[dir="rtl"] .quote-mark { margin-right: 0; margin-left: 4px; }

/* B2C testimonial & career track */
.b2c-testimonial { margin-top: 40px; padding: 32px; background: var(--cream); border-left: 2px solid var(--gold); }
.b2b-testimonial { padding: 32px; background: rgba(245, 241, 232, 0.04); border-left: 2px solid var(--gold); margin-top: 36px; }
.quote-mark { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 0; color: var(--gold); opacity: 0.3; vertical-align: -0.4em; margin-right: 4px; }
.testimonial-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.9375rem; color: var(--graphite); line-height: 1.65; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--emerald), var(--emerald-mid)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--gold-pale); flex-shrink: 0; }
.author-name { font-size: 0.8125rem; font-weight: 500; color: var(--graphite); }
.author-title { font-size: 0.75rem; color: var(--graphite-lt); }
.career-track { border: 1px solid var(--rule); padding: 32px; background: var(--cd); }
.career-track-step { padding: 16px 0; border-bottom: 1px solid rgba(201, 160, 80, 0.12); }
.career-track-step:last-child { border-bottom: none; opacity: 0.35; }
.career-step-level { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-lt); }
.career-step-level.active { color: var(--emerald); }
.career-step-name { font-size: 0.875rem; font-weight: 500; color: var(--graphite); margin-top: 4px; }
.career-step-sub { font-size: 0.75rem; color: var(--graphite-lt); margin-top: 2px; }

/* B2B ROI block */
.roi-block { background: rgba(245, 241, 232, 0.05); border: 1px solid rgba(201, 160, 80, 0.15); padding: 36px; margin-top: 36px; }
.roi-title { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-pale); margin-bottom: 24px; }
.roi-line { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(201, 160, 80, 0.1); }
.roi-line:last-child { border-bottom: none; }
.roi-label { font-size: 0.8125rem; color: rgba(245, 241, 232, 0.5); }
.roi-value { font-family: 'Playfair Display', serif; font-size: 1.125rem; color: var(--gold-pale); font-weight: 500; }
.btn-outline-e { background: transparent; border: 1px solid rgba(201, 160, 80, 0.3); color: rgba(237, 217, 163, 0.7); font-size: 0.8125rem; font-weight: 500; padding: 12px 22px; cursor: pointer; transition: all 0.2s; }
.btn-outline-e:hover { border-color: var(--gold); color: var(--gold-pale); }
.btn-tg { background: #2AABEE; color: #fff; gap: 8px; }
.btn-tg:hover { background: #1a95d8; transform: translateY(-1px); }

/* Method section */
#method { padding: 140px 0; background: var(--graphite); }
.method-header { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 80px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.method-step { padding: 40px 36px; border-right: 1px solid rgba(255, 255, 255, 0.06); transition: background 0.3s; }
.method-step:last-child { border-right: none; }
.method-step:hover { background: rgba(255, 255, 255, 0.02); }
.step-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 500; color: rgba(201, 160, 80, 0.12); line-height: 1; margin-bottom: 24px; }
.step-title { font-size: 0.875rem; font-weight: 500; color: rgba(245, 241, 232, 0.8); margin-bottom: 12px; letter-spacing: 0.02em; }
.step-desc { font-size: 0.8rem; color: rgba(245, 241, 232, 0.35); line-height: 1.65; }
.step-tags { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.step-tag { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(201, 160, 80, 0.5); padding: 4px 0; border-top: 1px solid rgba(201, 160, 80, 0.1); }
@media (max-width: 900px) { .method-steps { grid-template-columns: 1fr 1fr; } .method-header { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .method-steps { grid-template-columns: 1fr; } .method-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); } .method-step:last-child { border-bottom: none; } #method { padding: 80px 0; } }

/* Pricing table row labels & support */
.pt-row-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-lt); font-weight: 500; display: flex; align-items: center; }
.pt-check { color: var(--emerald); font-size: 0.875rem; }
.pt-dash { color: var(--rule); font-size: 1rem; }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(18, 46, 37, 0.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 95vw); background: var(--white); z-index: 151; transform: translateX(100%); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; border-left: 1px solid var(--rule); }
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-head { padding: 40px 48px 32px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--white); z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.drawer-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--graphite-lt); padding: 4px; transition: color 0.2s; flex-shrink: 0; }
.drawer-close:hover { color: var(--graphite); }
.drawer-body { padding: 40px 48px 60px; }
@media (max-width: 480px) { .drawer { width: 100%; max-width: 100%; } .drawer-head { padding: 24px 20px 24px; } .drawer-body { padding: 24px 20px 40px; } }
.drawer-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.drawer-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.drawer-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.15; color: var(--graphite); margin-bottom: 20px; }
.drawer-body p { font-size: 0.9375rem; line-height: 1.7; color: var(--graphite-mid); margin-bottom: 16px; }
.drawer-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.drawer-section-title { font-family: 'Playfair Display', serif; font-size: 1.125rem; color: var(--graphite); margin-bottom: 16px; }
.drawer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.drawer-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; color: var(--graphite-mid); line-height: 1.55; }
.drawer-list li::before { content: '◆'; color: var(--gold); font-size: 0.6rem; margin-top: 5px; flex-shrink: 0; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.drawer-stat { padding: 20px; border: 1px solid var(--rule); position: relative; }
.drawer-stat::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: var(--gold); opacity: 0.5; }
.drawer-stat-num { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--graphite); margin-bottom: 4px; }
.drawer-stat-label { font-size: 0.75rem; color: var(--graphite-lt); }
.course-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.course-card { padding: 20px 24px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; transition: all 0.2s; }
.course-card:hover { border-color: var(--gold); background: rgba(201, 160, 80, 0.03); }
.course-card-title { font-size: 0.9375rem; font-weight: 500; color: var(--graphite); }
.course-card-meta { font-size: 0.75rem; color: var(--graphite-lt); margin-top: 3px; }
.course-card-badge { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; background: var(--emerald); color: var(--gold-pale); flex-shrink: 0; }
.tg-cta-block { background: var(--emerald); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.tg-cta-text { color: var(--gold-pale); font-size: 0.875rem; line-height: 1.5; }
.tg-cta-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 4px; }

/* Footer contact & legal */
.footer-contact-item { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.footer-contact-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(201, 160, 80, 0.35); }
.footer-contact-value { font-size: 0.8rem; color: rgba(245, 241, 232, 0.55); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a, .footer-legal button { font-size: 0.75rem; color: rgba(245, 241, 232, 0.25); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.footer-legal a:hover, .footer-legal button:hover { color: rgba(245, 241, 232, 0.6); }

/* Chat widget */
.chat-fab { position: fixed; bottom: 32px; right: 32px; z-index: 180; width: 60px; height: 60px; min-width: 48px; min-height: 48px; background: var(--emerald); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 24px rgba(27, 77, 62, 0.3); transition: all 0.3s; }
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(27, 77, 62, 0.4); }
.chat-fab svg { width: 26px; height: 26px; fill: var(--gold-pale); }
.chat-fab.open .chat-icon { opacity: 0; position: absolute; }
.chat-fab.open .close-icon { opacity: 1; }
.close-icon { opacity: 0; position: absolute; }
.chat-fab-badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: var(--gold); border-radius: 50%; font-size: 0.6rem; color: var(--emerald-deep); display: none; align-items: center; justify-content: center; font-weight: 700; }
.chat-window { position: fixed; bottom: 108px; right: 32px; z-index: 180; width: 380px; max-width: calc(100vw - 24px); max-height: 600px; height: 85vh; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 16px 64px rgba(27, 77, 62, 0.2); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(16px) scale(0.97); transition: all 0.35s; transform-origin: bottom right; }
.chat-window.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
@media (max-width: 480px) { .chat-fab { bottom: 20px; right: 16px; } .chat-window { right: 16px; left: 16px; bottom: 96px; width: auto; max-width: none; max-height: 70vh; } }
.chat-header { background: var(--emerald); padding: 18px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(201, 160, 80, 0.15); flex-shrink: 0; }
.chat-avatar { width: 38px; height: 38px; background: rgba(201, 160, 80, 0.2); border: 1px solid rgba(201, 160, 80, 0.3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--gold-pale); flex-shrink: 0; }
.chat-agent-name { font-size: 0.875rem; font-weight: 500; color: var(--gold-pale); }
.chat-agent-status { font-size: 0.7rem; color: rgba(237, 217, 163, 0.5); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; max-height: 380px; }
.chat-msg { max-width: 85%; display: flex; flex-direction: column; gap: 4px; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble { padding: 10px 14px; font-size: 0.8125rem; line-height: 1.55; border-radius: 2px; }
.chat-msg.bot .chat-bubble { background: var(--cream); color: var(--graphite); border: 1px solid var(--rule); }
.chat-msg.user .chat-bubble { background: var(--emerald); color: var(--gold-pale); }
.chat-time { font-size: 0.65rem; color: var(--graphite-lt); }
.chat-msg.user .chat-time { text-align: right; }
.chat-quick { padding: 12px 16px; border-top: 1px solid var(--rule); display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.quick-btn { font-size: 0.7rem; padding: 6px 12px; background: transparent; border: 1px solid var(--rule); color: var(--graphite-mid); cursor: pointer; transition: all 0.2s; }
.quick-btn:hover { border-color: var(--gold); color: var(--graphite); }
.chat-input-row { padding: 12px 16px; border-top: 1px solid var(--rule); display: flex; gap: 8px; flex-shrink: 0; }
.chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--rule); background: var(--cream); font-size: 0.8125rem; color: var(--graphite); outline: none; resize: none; transition: border-color 0.2s; height: 40px; max-height: 100px; }
.chat-input:focus { border-color: var(--emerald); }
.chat-send { width: 40px; height: 40px; background: var(--emerald); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.chat-send:hover { background: var(--emerald-deep); }
.chat-send svg { width: 16px; height: 16px; fill: var(--gold-pale); }
.chat-footer-note { padding: 8px 16px; font-size: 0.6rem; color: var(--graphite-lt); text-align: center; border-top: 1px solid var(--rule); flex-shrink: 0; }

/* ══ ScrollSpy active ═══════════════════════════════════════════════ */
.spa-nav-link.spy-active { color: var(--e); border-bottom-color: rgba(201, 160, 80, 0.4); }

/* ══ /staff page ════════════════════════════════════════════════════ */
.pg-staff-hero { background: var(--emerald-deep); padding: 100px 0 80px; border-bottom: 1px solid rgba(201,160,80,.12); }
.staff-grid { gap: 64px; }
@media (max-width: 900px) { .staff-grid { grid-template-columns: 1fr !important; } }

/* Career Ladder */
.career-track-btn.active { background: var(--e) !important; color: var(--gp) !important; border-color: var(--e) !important; }
.cl-step { display: flex; gap: 16px; margin-bottom: 4px; }
.cl-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 20px; }
.cl-step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule); border: 2px solid var(--rule); flex-shrink: 0; transition: all 0.3s; margin-top: 4px; }
.cl-step-line { width: 2px; background: var(--rule); flex: 1; min-height: 24px; margin: 4px 0; }
.cl-step-body { padding-bottom: 28px; flex: 1; }
.cl-level { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-lt); margin-bottom: 4px; }
.cl-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--graphite); font-weight: 500; margin-bottom: 4px; }
.cl-meta { font-size: 0.8rem; color: var(--graphite-lt); }
.cl-salary { font-size: 0.875rem; font-weight: 600; color: var(--e); margin-top: 6px; }
.cl-step:hover .cl-step-dot, .cl-step-active .cl-step-dot { background: var(--e); border-color: var(--e); }

/* Staff benefits */
.staff-benefit { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.staff-benefit:last-child { border-bottom: none; }
.staff-benefit-icon { font-size: 0.625rem; letter-spacing: 0.14em; color: var(--graphite-lt); min-width: 20px; margin-top: 3px; }
.staff-benefit-title { font-size: 0.875rem; font-weight: 500; color: var(--graphite); margin-bottom: 4px; }
.staff-benefit-desc { font-size: 0.8rem; color: var(--graphite-lt); line-height: 1.55; }

/* Staff dashboard demo */
.staff-dashboard-demo { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--rule); background: var(--wh); }
@media (max-width: 700px) { .staff-dashboard-demo { grid-template-columns: 1fr; } }
.sdd-sidebar { background: var(--emerald-deep); padding: 28px 20px; display: flex; flex-direction: column; gap: 8px; }
.sdd-avatar { width: 44px; height: 44px; background: rgba(201,160,80,.2); border: 1px solid rgba(201,160,80,.3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--gold-pale); }
.sdd-name { font-size: 0.9rem; font-weight: 500; color: var(--gold-pale); margin-top: 4px; }
.sdd-role { font-size: 0.7rem; color: rgba(237,217,163,.5); }
.sdd-xp-label { font-size: 0.65rem; color: rgba(237,217,163,.4); margin-top: 8px; }
.sdd-xp-bar { height: 4px; background: rgba(201,160,80,.15); }
.sdd-xp-fill { height: 100%; background: var(--gold); }
.sdd-nav-items { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.sdd-nav-item { padding: 8px 10px; font-size: 0.8rem; color: rgba(237,217,163,.4); cursor: pointer; }
.sdd-nav-item.active { background: rgba(201,160,80,.08); color: var(--gold-pale); border-left: 2px solid var(--gold); }
.sdd-main { padding: 28px; }
.sdd-streak { font-size: 0.8125rem; color: var(--graphite-lt); margin-bottom: 16px; }
.sdd-section-title { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-lt); margin-bottom: 12px; }
.sdd-course-card { border: 1px solid var(--rule); padding: 16px 18px; margin-bottom: 8px; }
.sdd-course-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.sdd-course-name { font-size: 0.875rem; font-weight: 500; color: var(--graphite); }
.sdd-course-meta { font-size: 0.75rem; color: var(--graphite-lt); margin-top: 2px; }
.sdd-course-pct { font-size: 0.8125rem; font-weight: 600; color: var(--e); }
.sdd-course-bar { height: 4px; background: var(--rule); }
.sdd-course-fill { height: 100%; background: var(--e); }
.sdd-cert-row { display: flex; flex-direction: column; gap: 10px; }
.sdd-cert, .sdd-cert-locked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); }
.sdd-cert-locked { opacity: 0.45; }
.sdd-cert-badge { width: 28px; height: 28px; background: var(--e); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-pale); font-size: 0.75rem; flex-shrink: 0; }
.sdd-cert-badge-locked { width: 28px; height: 28px; background: var(--rule); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.sdd-cert-name { font-size: 0.8125rem; font-weight: 500; color: var(--graphite); }
.sdd-cert-date { font-size: 0.72rem; color: var(--graphite-lt); margin-top: 2px; }

/* ══ /business page ═════════════════════════════════════════════════ */
.pg-business-hero { background: var(--emerald-deep); padding: 100px 0 80px; border-bottom: 1px solid rgba(201,160,80,.12); }
@media (max-width: 900px) { .biz-heatmap-grid { grid-template-columns: 1fr !important; } }

/* ROI Calculator */
.roi-calc-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .roi-calc-wrap { grid-template-columns: 1fr; } }
.roi-inputs { display: flex; flex-direction: column; gap: 32px; }
.roi-field { }
.roi-field-label { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.875rem; color: var(--graphite-mid); }
.roi-field-val { font-weight: 600; color: var(--e); }
.roi-slider { width: 100%; height: 4px; accent-color: var(--e); cursor: pointer; appearance: none; background: var(--rule); outline: none; }
.roi-slider::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--e); cursor: pointer; }
.roi-range-ends { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--graphite-lt); margin-top: 6px; }
.roi-results { background: var(--emerald-deep); padding: 36px; color: var(--gold-pale); }
.roi-res-label { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(237,217,163,.5); margin-bottom: 12px; }
.roi-res-value { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); font-weight: 500; margin-bottom: 20px; }
.roi-res-breakdown { border-top: 1px solid rgba(201,160,80,.15); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.roi-res-line { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(237,217,163,.6); }
.roi-res-line strong { color: var(--gold-pale); font-weight: 600; }

/* Heatmap */
.hm-dept { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; margin-bottom: 4px; }
.hm-dept:hover, .hm-dept.hm-active { background: rgba(27,77,62,.04); border-color: var(--rule); }
.hm-dept-name { font-size: 0.8125rem; color: var(--graphite-mid); }
.hm-dept-bar { height: 6px; background: var(--rule); }
.hm-fill { height: 100%; transition: width 0.6s ease; }
.hm-pct { font-size: 0.8rem; font-weight: 600; color: var(--graphite); text-align: right; }

/* Case Studies */
.case-card { background: var(--wh); padding: 36px 32px; }
.case-label { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-lt); margin-bottom: 16px; }
.case-metric { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--e); font-weight: 500; margin-bottom: 6px; }
.case-metric-label { font-size: 0.8rem; color: var(--graphite-lt); margin-bottom: 16px; }
.case-desc { font-size: 0.875rem; color: var(--graphite-mid); line-height: 1.6; font-style: italic; margin-bottom: 16px; }
.case-author { font-size: 0.75rem; color: var(--graphite-lt); }

/* Pilot form */
.pilot-form input { transition: border-color 0.2s; }
.pilot-form input:focus { border-bottom-color: rgba(201,160,80,.7) !important; outline: none; }
.pilot-form input::placeholder { color: rgba(237,217,163,.3); }

/* Integration logos */
.int-logo { padding: 12px 24px; border: 1px solid var(--rule); font-size: 0.8125rem; color: var(--graphite-lt); }

/* ══ Offline Showcase ═══════════════════════════════════════════════ */
.offline-sim-wrap { max-width: 500px; margin-left: auto; margin-right: auto; }
.offline-sim-card { background: var(--wh); border: 1px solid var(--rule); padding: 32px 28px; position: relative; }
.offline-badge { display: flex; align-items: center; gap: 8px; background: rgba(220,107,74,.12); border: 1px solid rgba(220,107,74,.3); padding: 7px 12px; font-size: 0.75rem; color: #c0392b; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 16px; width: fit-content; }
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; animation: statusPulse 1.5s ease-in-out infinite; }
.offline-sim-phone { border: 1px solid var(--rule); padding: 16px; background: var(--cream); }
.osp-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.osp-title { font-size: 0.75rem; font-weight: 600; color: var(--graphite); }
.osp-prog { width: 80px; height: 4px; background: var(--rule); }
.osp-prog-fill { height: 100%; background: var(--e); }
.osp-body { cursor: pointer; padding: 12px; background: var(--wh); border: 1px solid var(--rule); transition: background 0.2s; }
.osp-body:hover { background: rgba(27,77,62,.03); }
.osp-lesson-title { font-family: 'Playfair Display', serif; font-size: 0.875rem; color: var(--graphite); margin-bottom: 8px; }
.osp-lesson-text { font-size: 0.8rem; color: var(--graphite-lt); line-height: 1.6; margin-bottom: 10px; }
.osp-quiz-prompt { font-size: 0.75rem; color: var(--e); font-weight: 500; }

/* ══ Trust Bar (hero) ═══════════════════════════════════════════════ */
.partner-strip { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 32px 0; }
.partner-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partner-logo-text { font-size: 0.875rem; font-weight: 500; color: var(--graphite-lt); padding: 8px 16px; border: 1px solid var(--rule); letter-spacing: 0.04em; }

/* ══ Trust Bar video placeholder ════════════════════════════════════ */
.trust-video-card { width: 200px; min-width: 160px; background: var(--emerald-deep); padding: 20px; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100px; }
.trust-play-btn { width: 44px; height: 44px; background: rgba(201,160,80,.2); border: 1px solid rgba(201,160,80,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-pale); transition: all 0.2s; }
.trust-video-card:hover .trust-play-btn { background: rgba(201,160,80,.3); }
.trust-video-caption { margin-top: 12px; }
.trust-video-name { font-size: 0.75rem; font-weight: 500; color: rgba(237,217,163,.8); }
.trust-video-hotel { font-size: 0.65rem; color: rgba(237,217,163,.4); margin-top: 2px; }

/* ══ Progressive Profiling ══════════════════════════════════════════ */
.prof-role-btn.active { border-color: var(--e) !important; background: rgba(27,77,62,.06) !important; }

/* == Public Course Library ========================================== */
.lib-content-root { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; }
.lib-loading { text-align: center; padding: 80px 20px; color: var(--graphite-lt); font-size: 1rem; }
.lib-error { color: #c0392b; padding: 20px; text-align: center; }

/* Hero */
.lib-hero { padding: 48px 0 40px; text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
.lib-hero-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gr); margin: 0 0 12px; }
.lib-hero-sub { color: var(--graphite-lt); font-size: 1.05rem; max-width: 560px; margin: 0 auto 16px; }
.lib-progress-badge { display: inline-block; background: rgba(27,77,62,.08); color: var(--e); border: 1px solid rgba(27,77,62,.18); border-radius: 20px; padding: 6px 16px; font-size: 0.85rem; font-weight: 500; }

/* Direction cards */
.lib-directions { display: flex; flex-direction: column; gap: 14px; }
.lib-dir-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--cr); border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s; }
.lib-dir-card:hover { border-color: var(--e); box-shadow: 0 4px 16px rgba(27,77,62,.08); }
.lib-dir-icon { font-size: 2rem; flex-shrink: 0; width: 48px; text-align: center; }
.lib-dir-body { flex: 1; min-width: 0; }
.lib-dir-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gr); margin: 0 0 4px; }
.lib-dir-desc { font-size: 0.85rem; color: var(--graphite-lt); margin: 0 0 6px; }
.lib-dir-meta { font-size: 0.78rem; color: var(--gm); font-weight: 500; }
.lib-dir-arrow { color: var(--graphite-lt); flex-shrink: 0; }

/* Back / page header */
.lib-back { margin-bottom: 20px; }
.lib-page { }
.lib-dir-header { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.lib-dir-icon-lg { font-size: 2.8rem; }
.lib-page-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gr); margin: 0 0 8px; }
.lib-page-desc { color: var(--graphite-lt); margin: 0; font-size: 0.95rem; }

/* Level sections */
.lib-level { margin-bottom: 36px; }
.lib-level-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gr); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.lib-level-badge { font-family: var(--font-body, system-ui); font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 10px; letter-spacing: 0.04em; }
.lib-level-badge--paid { background: rgba(201,160,80,.12); color: var(--gold-lt, #b8952a); border: 1px solid rgba(201,160,80,.25); }

/* Topic list */
.lib-topics { display: flex; flex-direction: column; gap: 8px; }
.lib-topic-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--cr); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; transition: border-color 0.15s; }
.lib-topic-item:hover:not(.lib-topic-locked) { border-color: var(--e); }
.lib-topic-locked { cursor: default; opacity: 0.6; }
.lib-topic-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(27,77,62,.08); color: var(--e); font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lib-topic-body { flex: 1; }
.lib-topic-title { font-size: 0.95rem; color: var(--gr); font-weight: 500; }
.lib-topic-meta { font-size: 0.78rem; color: var(--graphite-lt); margin-top: 2px; }
.lib-lock-icon { color: var(--graphite-lt); flex-shrink: 0; }

/* Breadcrumbs */
.lib-breadcrumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.lib-bc-btn { background: none; border: none; padding: 4px 6px; color: var(--e); font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lib-bc-btn:hover { color: var(--gr); }
.lib-bc-sep { color: var(--graphite-lt); font-size: 0.85rem; }
.lib-bc-current { font-size: 0.85rem; color: var(--graphite-lt); padding: 4px 6px; }

/* Lesson list (topic view) */
.lib-lessons-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.lib-lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--cr); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; transition: border-color 0.15s; }
.lib-lesson-row:hover { border-color: var(--e); }
.lib-lesson-done { border-color: rgba(27,77,62,.3); background: rgba(27,77,62,.03); }
.lib-lesson-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(27,77,62,.08); color: var(--e); font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lib-lesson-done .lib-lesson-num { background: var(--e); color: #fff; }
.lib-lesson-body { flex: 1; }
.lib-lesson-title { font-size: 0.95rem; color: var(--gr); font-weight: 500; }
.lib-lesson-meta { font-size: 0.78rem; color: var(--graphite-lt); margin-top: 2px; }

/* Lesson page */
.lib-lesson-page { }
.lib-lesson-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gr); margin: 0 0 12px; }
.lib-lesson-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.lib-lesson-dur { font-size: 0.85rem; color: var(--graphite-lt); }
.lib-done-badge { background: rgba(27,77,62,.1); color: var(--e); border-radius: 12px; padding: 3px 12px; font-size: 0.8rem; font-weight: 500; }
.lib-lesson-body { line-height: 1.8; color: var(--gr); font-size: 0.97rem; }
.lib-lesson-body h2, .lib-lesson-body h3 { font-family: 'Playfair Display', serif; color: var(--gr); margin-top: 28px; }
.lib-lesson-body ul, .lib-lesson-body ol { padding-left: 20px; }
.lib-lesson-body li { margin-bottom: 6px; }
.lib-lesson-empty { color: var(--graphite-lt); font-style: italic; padding: 40px 0; text-align: center; }

/* Quiz */
.lib-quiz { margin-top: 40px; padding: 28px; background: rgba(27,77,62,.03); border: 1px solid rgba(27,77,62,.12); border-radius: 14px; }
.lib-quiz-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gr); margin: 0 0 20px; }
.lib-quiz-q { margin-bottom: 24px; }
.lib-quiz-qtext { font-weight: 500; color: var(--gr); margin: 0 0 12px; font-size: 0.97rem; }
.lib-quiz-options { display: flex; flex-direction: column; gap: 8px; }
.lib-quiz-opt { text-align: left; background: var(--cr); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 16px; cursor: pointer; font-size: 0.9rem; color: var(--gr); transition: border-color 0.15s, background 0.15s; }
.lib-quiz-opt:hover:not(:disabled) { border-color: var(--e); }
.lib-quiz-opt.correct { border-color: #27ae60; background: rgba(39,174,96,.08); color: #1e8449; }
.lib-quiz-opt.wrong { border-color: #e74c3c; background: rgba(231,76,60,.08); color: #c0392b; }
.lib-quiz-explain { margin-top: 10px; font-size: 0.85rem; color: var(--graphite-lt); font-style: italic; padding: 8px 12px; background: var(--bg); border-left: 3px solid var(--rule); }
.lib-quiz-footer { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lib-quiz-score { font-weight: 600; color: var(--e); font-size: 1rem; }
.lib-complete-row { margin-top: 32px; display: flex; justify-content: center; }
.lib-complete-btn { background: var(--e); color: #fff; border: none; border-radius: 8px; padding: 12px 28px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.18s; }
.lib-complete-btn:hover { background: var(--gr); }

@media (max-width: 640px) {
  .lib-hero-title { font-size: 1.6rem; }
  .lib-dir-card { padding: 16px; }
  .lib-lesson-page .lib-lesson-title { font-size: 1.35rem; }
}

/* B2C cabinet — явный прелоадер вместо «затемнённого» полупрозрачного UI */
#b2c-cabinet { position: relative; }
.b2c-cabinet-loading {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(3px);
}
.b2c-cabinet-loading-inner {
  text-align: center;
  padding: 28px 32px;
  max-width: 280px;
}
.b2c-cabinet-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid rgba(27, 77, 62, 0.15);
  border-top-color: var(--e);
  border-radius: 50%;
  animation: b2c-spin 0.75s linear infinite;
}
@keyframes b2c-spin {
  to { transform: rotate(360deg); }
}
.b2c-cabinet-loading-text {
  font-size: 0.875rem;
  color: var(--graphite-mid);
  line-height: 1.45;
}

/* ── Mobile App Mockup ──────────────────────────────── */

/* Phone frame - modern smartphone silhouette */
.app-phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,.18), inset 0 0 0 2px rgba(255,255,255,.1);
  margin: 0 auto;
}

/* Notch */
.app-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* Screen area */
.app-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  position: relative;
}

/* App header bar */
.app-ui-header {
  background: var(--emerald);
  padding: 36px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-ui-logo {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  font-size: .875rem;
  letter-spacing: .02em;
}
.app-ui-logo span { color: var(--gold); }
.app-ui-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .7;
}

/* App content area */
.app-ui-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Course card in app */
.app-ui-card {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.app-ui-card-title {
  color: var(--cream);
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.app-ui-card-sub {
  color: rgba(245,241,232,.5);
  font-size: .625rem;
}

/* Progress bar in app */
.app-ui-progress {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.app-ui-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width .6s ease;
}

/* App bottom nav */
.app-ui-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: rgba(27,77,62,.95);
  border-top: 1px solid rgba(255,255,255,.06);
}
.app-ui-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(245,241,232,.4);
  font-size: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.app-ui-nav-item.active { color: var(--gold); }
.app-ui-nav-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: currentColor;
  opacity: .3;
}
.app-ui-nav-item.active .app-ui-nav-dot { opacity: .8; }

/* Badge/XP indicator */
.app-ui-xp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,160,80,.15);
  color: var(--gold);
  font-size: .625rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

/* App store badges row */
.app-store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.app-store-badge:hover { opacity: .85; }
.app-store-badge-sub {
  font-size: .5rem;
  font-weight: 400;
  opacity: .7;
  display: block;
}

/* Mobile app section layout */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .app-showcase { grid-template-columns: 1fr; gap: 48px; }
  .app-phone { width: 240px; height: 480px; border-radius: 30px; padding: 10px; }
  .app-phone::before { width: 80px; height: 20px; }
  .app-phone-screen { border-radius: 20px; }
}

/* Feature list next to phone */
.app-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.app-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.app-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(201,160,80,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.app-feature-text h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
  margin: 0 0 4px;
}
.app-feature-text p {
  font-size: .8125rem;
  color: var(--graphite-lt);
  line-height: 1.6;
  margin: 0;
}

/* Streak widget in app */
.app-ui-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(201,160,80,.12);
  border-radius: 10px;
  margin-bottom: 4px;
}
.app-ui-streak-fire { font-size: 1rem; }
.app-ui-streak-text {
  color: var(--gold-pale);
  font-size: .6875rem;
  font-weight: 500;
}
.app-ui-streak-days {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — comprehensive fixes for all sections
   ══════════════════════════════════════════════════════════════════════ */

/* --- Reduce large section padding on mobile --- */
@media (max-width: 900px) {
  #b2c, #b2b, #pricing { padding: 80px 0; }
  .pricing-header { margin-bottom: 48px; }
  .pg-staff-hero, .pg-business-hero { padding: 72px 0 56px; }
  .section-pad { padding: 56px 0 !important; }
}
@media (max-width: 600px) {
  #b2c, #b2b, #pricing { padding: 56px 0; }
  .pricing-header { margin-bottom: 32px; }
  .pg-staff-hero, .pg-business-hero { padding: 56px 0 40px; }
  .section-pad { padding: 40px 0 !important; }
}

/* --- Inline grid overrides (inline styles need !important) --- */
@media (max-width: 900px) {
  .app-showcase {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 48px 0 !important;
  }
  .markets-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 48px 0 !important;
  }
  .staff-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .biz-heatmap-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

@media (max-width: 600px) {
  .app-showcase { gap: 32px !important; padding: 32px 0 !important; }
  .markets-grid { gap: 32px !important; padding: 32px 0 !important; }
  .staff-grid { gap: 28px !important; }
  .biz-heatmap-grid { gap: 28px !important; }
}

/* --- Drawer grid — stack to single column on mobile --- */
@media (max-width: 600px) {
  .drawer-grid { grid-template-columns: 1fr !important; }
}

/* --- Partner strip — reduce gap on mobile --- */
@media (max-width: 600px) {
  .partner-inner { gap: 12px; }
  .partner-logos { gap: 10px; }
  .partner-logo-text { padding: 6px 10px; font-size: 0.75rem; }
}

/* --- Heatmap grid — stack on small screens --- */
@media (max-width: 600px) {
  .hm-dept { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-dept-name { grid-column: 1 / -1; }
}

/* --- ROI calculator — reduce gap on mobile --- */
@media (max-width: 600px) {
  .roi-results { padding: 24px; }
  .roi-res-value { font-size: 2rem; }
}

/* --- Case cards — smaller padding on mobile --- */
@media (max-width: 600px) {
  .case-card { padding: 24px 20px; }
  .case-metric { font-size: 2rem; }
}

/* --- B2C certs grid — ensure single column on small screens --- */
@media (max-width: 480px) {
  .b2c-certs-grid { grid-template-columns: 1fr !important; }
}

/* --- Blog hero — reduce padding on mobile --- */
@media (max-width: 600px) {
  .blog-hero { padding: 48px 24px 36px; }
}

/* --- Phone mockup — smaller on very small screens --- */
@media (max-width: 480px) {
  .app-phone { width: 220px; height: 440px; border-radius: 28px; padding: 8px; }
  .app-phone::before { width: 70px; height: 18px; }
  .app-phone-screen { border-radius: 18px; }
}

/* --- App store badges — wrap on mobile --- */
@media (max-width: 480px) {
  .app-store-badges { flex-direction: column; align-items: stretch; }
  .app-store-badge { justify-content: center; }
}

/* --- Trust video card — smaller on mobile --- */
@media (max-width: 600px) {
  .trust-video-card { width: 160px; min-width: 120px; padding: 16px; }
}

/* --- Staff dashboard demo — reduce padding on mobile --- */
@media (max-width: 480px) {
  .sdd-main { padding: 20px; }
  .sdd-sidebar { padding: 20px 16px; }
}

/* --- Breadcrumbs — overflow scroll on mobile --- */
@media (max-width: 480px) {
  .spa-bc { padding: 10px 16px; overflow-x: auto; white-space: nowrap; }
}

/* --- B2C auth — reduce padding on small screens --- */
@media (max-width: 480px) {
  .b2c-auth-screen { padding: 24px 16px; }
  .b2c-auth-form { padding: 20px; }
}

/* --- Ensure images don't overflow --- */
img, video, svg { max-width: 100%; height: auto; }

/* --- Prevent horizontal scroll on mobile --- */
html, body { overflow-x: hidden; }

/* --- Accessibility: focus-visible keyboard indicator --- */
/* Remove default outline for mouse users, keep it for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Nav links: inline-flex elements need adjusted offset */
.spa-nav-link:focus-visible,
.spa-mob-link:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: -2px;
}
/* CTA and lang buttons */
.spa-cta:focus-visible,
.spa-lang-btn:focus-visible,
.spa-mob-lang-btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* --- Touch target: language buttons on mobile --- */
@media (max-width: 600px) {
  .spa-lang-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
