/* =====================
   CSS VARIABLES
   ===================== */
:root {
  --bg: #EEF4FA;
  --bg-2: #E4EDF7;
  --surface: #D8E8F2;
  --border: rgba(30,40,70,0.1);
  --text: #1A1610;
  --text-muted: rgba(27,34,64,0.5);
  --accent: #B8922A;
  --accent-dark: #9E7A1E;
  --accent-light: #D4AF6A;
  --accent-2: #3B7CB8;
  --white: #ffffff;
  --card-bg: rgba(255,255,255,0.85);
  --card-border: rgba(184,146,42,0.2);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(248,246,241,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(248,246,241,0.98);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent) !important;
  color: #1b2240 !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: opacity var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Segment switcher */
.nav-segment {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.seg-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.seg-btn.active {
  background: var(--accent);
  color: #1b2240;
  font-weight: 700;
}

.seg-btn:not(.active):hover {
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: auto;
  padding-top: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Exact insursolution.ca hero gradient */
  background: linear-gradient(
    to right,
    #FAF7F2 0%,
    #EEF3F8 35%,
    #C8DCF0 60%,
    #7BAED4 80%,
    #3B7CB8 100%
  );
  z-index: 0;
}

/* Diagonal grid overlay — same as insursolution.ca */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0,
    rgba(255,255,255,0.03) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  flex: 1;
}

/* Left: content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #1b2240;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

/* Right: Team cards */
.hero-team {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition);
  animation: fadeUp 0.6s var(--delay, 0.1s) ease both;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.team-card:hover {
  border-color: rgba(201,168,76,0.45);
  transform: translateX(4px);
}

.linkedin-icon {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.team-card:hover .linkedin-icon {
  color: #0a66c2;
}

.team-photo-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--card-border);
  background: var(--surface);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  flex: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.team-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.team-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  background: rgba(27,34,64,0.04);
  padding: 1.8rem 2rem;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem 2rem;
  }

  .hero-team {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .team-card {
    flex: 1;
    min-width: 260px;
  }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(238,244,250,0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(184,146,42,0.2);
    gap: 0.2rem;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(27,34,64,0.1);
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(27,34,64,0.06);
    color: var(--text);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .burger { display: flex; }

  /* Lang switcher inside mobile menu */
  .lang-switcher-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(27,34,64,0.06);
    margin-top: 4px;
    width: 100%;
  }

  .stat { padding: 0 1.5rem; }
}

@media (max-width: 500px) {
  .hero-title { font-size: 2.4rem; }
  .hero-team { flex-direction: column; }
  .stats-bar { gap: 1rem; }
  .stat { padding: 0.5rem 1rem; }
  .stat-divider { display: none; }
  .hero { padding-top: 100px; }
  .navbar { height: auto; min-height: 60px; padding: 8px 1rem; }
}

/* =====================
   QUIZ SECTION
   ===================== */
.quiz-section {
  padding: 3.5rem 2rem;
  background: var(--bg-2);
  position: relative;
}

.quiz-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.05;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Quiz card */
.quiz-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Progress */
.quiz-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-bottom: 1.8rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

.quiz-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Question */
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2rem;
  min-height: 80px;
}

/* Answer buttons */
.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-align: left;
}

.quiz-btn:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.06);
  transform: translateX(4px);
}

.quiz-btn.positive {
  border-color: rgba(201,168,76,0.2);
}

.quiz-btn.negative {
  border-color: rgba(255,255,255,0.06);
}

.quiz-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(201,168,76,0.1);
}

.quiz-btn.negative .quiz-btn-icon {
  background: rgba(255,255,255,0.06);
}

/* Result */
.quiz-result {
  text-align: center;
  padding: 1rem 0;
  animation: fadeUp 0.5s ease both;
}

.result-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.result-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.result-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #1b2240;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: opacity var(--transition), transform var(--transition);
}

.result-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .quiz-card { padding: 1.5rem; }
  .quiz-btn { padding: 0.9rem 1.1rem; }
}

/* =====================
   TIMELINE SECTION
   ===================== */
.timeline-section {
  padding: 3.5rem 2rem;
  background: #EEF4FA;
  position: relative;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,245,101,0.2), transparent);
}

.timeline-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.timeline-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.timeline-header .section-title,
.timeline-header .section-title-sub {
  display: block;
  line-height: 1.1;
  margin-bottom: 0;
  margin-top: 0;
}

.section-title-sub {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.2rem;
  margin-top: -1.6rem;
  line-height: 1.05;
}

/* Timeline track */
.timeline {
  position: relative;
  padding-left: 56px;
}

.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(201,168,76,0.15) 0%,
    rgba(201,168,76,0.4) 75%,
    rgba(201,168,76,0.05) 100%
  );
}

/* Individual step */
.tl-item {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Dot */
.tl-dot {
  position: absolute;
  left: -46px;
  top: 1.4rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(201,168,76,0.35);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color var(--transition), background var(--transition);
}

.tl-item:hover .tl-dot,
.tl-item.open .tl-dot {
  border-color: var(--accent);
  background: rgba(201,168,76,0.1);
}

.tl-dot--active {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #1b2240 !important;
}

/* Card */
.tl-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.tl-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateX(3px);
}

.tl-card--active {
  border-color: rgba(201,168,76,0.25) !important;
  background: rgba(201,168,76,0.04) !important;
}

.tl-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
}

.tl-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

.tl-card-title-wrap {
  flex: 1;
}

.tl-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.tl-tag--active {
  color: var(--accent) !important;
}

.tl-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.tl-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.tl-card.open .tl-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Expandable body */
.tl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  padding: 0 1.4rem;
}

.tl-card.open .tl-body {
  max-height: 400px;
  padding: 0 1.4rem 1.4rem;
}

.tl-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tl-highlights {
  background: rgba(201,168,76,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 1rem 1.2rem;
}

.tl-highlights span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.tl-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tl-highlights ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.tl-highlights ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* DIVIDER — money starts here */
.tl-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  position: relative;
}

.tl-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3));
}

.tl-divider-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,0.3), transparent);
}

.tl-divider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tl-divider-icon {
  font-size: 1rem;
}

/* Bottom CTA */
.timeline-cta {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.timeline-cta p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.timeline-cta p em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* =====================
   RESPONSIVE — TIMELINE
   ===================== */
@media (max-width: 600px) {
  .timeline {
    padding-left: 44px;
  }

  .timeline-line {
    left: 14px;
  }

  .tl-dot {
    left: -36px;
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .tl-card-header {
    padding: 1rem;
    gap: 0.75rem;
  }

  .tl-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .tl-title {
    font-size: 0.95rem;
  }

  .tl-divider-label {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
    text-align: center;
    white-space: normal;
  }
}

/* =====================
   COMPARISON SECTION
   ===================== */
.compare-section {
  padding: 3.5rem 2rem;
  background: #ffffff;
  position: relative;
}

.compare-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,245,101,0.2), transparent);
}

.compare-container {
  max-width: 1100px;
  margin: 0 auto;
}

.compare-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Slider */
.slider-wrap {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.slider-year-label {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-family: var(--font-display);
  font-size: 1rem !important;
}

.timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(27,34,64,0.25) 0%, rgba(201,168,76,0.7) 100%);
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4), 0 0 0 3px rgba(255,255,255,0.95);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: none;
}

.timeline-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 12px rgba(201,168,76,0.5), 0 0 0 5px rgba(255,255,255,0.95);
  transform: scale(1.1);
}

.timeline-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(200,245,101,0.2);
}

.slider-hint {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Cards */
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.compare-card {
  border-radius: 20px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
}

.compare-card--empower {
  border-color: rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.03);
}

.compare-card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.compare-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.compare-badge--standard {
  background: rgba(27,34,64,0.07);
  color: var(--text-muted);
}

.compare-badge--empower {
  background: rgba(201,168,76,0.15);
  color: var(--accent-dark);
}

.compare-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Chart */
.compare-chart-wrap {
  position: relative;
  padding: 0 1.5rem 0.5rem;
}

.compare-chart {
  width: 100% !important;
  height: 180px !important;
  display: block;
}

.chart-label-y {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-label-x {
  position: absolute;
  bottom: 0.2rem;
  right: 1.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* List */
.compare-list {
  list-style: none;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.compare-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.compare-list-item--bad  { color: var(--text-muted); }
.compare-list-item--good { color: var(--text); }

.cli-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

.compare-list-item--bad  .cli-icon { background: rgba(180,50,50,0.08);  color: #b03030; }
.compare-list-item--good .cli-icon { background: rgba(201,168,76,0.15); color: var(--accent-dark); }

/* Outcome box */
.compare-outcome {
  margin: 0 1.5rem 1.5rem;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.compare-outcome--standard {
  background: rgba(27,34,64,0.05);
  border: 1px solid rgba(27,34,64,0.1);
}

.compare-outcome--empower {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
}

.outcome-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.outcome-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.compare-outcome--empower .outcome-value {
  color: var(--accent);
}

/* Gap indicator */
.compare-gap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gap-bar {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0.8rem;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
}

.gap-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(27,34,64,0.5) 0%, var(--accent) 100%);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  width: 50%;
}

.gap-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gap-value {
  color: var(--accent);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 700px) {
  .compare-cards {
    grid-template-columns: 1fr;
  }

  .compare-chart {
    height: 140px !important;
  }
}

/* Compare card tags (No choice / Not flexible / HELOC / Smith) */
.compare-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.5rem;
}

.compare-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.compare-tag--bad {
  background: rgba(180,50,50,0.08);
  color: #c0392b;
  border: 1px solid rgba(180,50,50,0.18);
}

.compare-tag--good {
  background: rgba(45,106,79,0.1);
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.35);
}

/* Gap indicator repositioned under slider */
.compare-gap {
  margin-top: 1.2rem;
  text-align: center;
}

.gap-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.gap-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(27,34,64,0.5) 0%, var(--accent) 100%);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  width: 50%;
}

.gap-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gap-value {
  color: var(--accent);
  font-weight: 700;
}

/* =====================
   ABOUT SECTION
   ===================== */
.about-section {
  padding: 3.5rem 2rem;
  background: #2A5F96;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Text overrides for dark blue background */
.about-section .section-badge {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

.about-section .section-title,
.about-section .section-title-sub {
  color: #ffffff;
}

.about-section .hero-accent {
  color: #D4AF6A;
}

.about-section .section-desc {
  color: rgba(255,255,255,0.65);
}

.about-section .about-name {
  color: #ffffff;
}

.about-section .about-title {
  color: #D4AF6A;
}

.about-section .about-spec {
  color: rgba(255,255,255,0.6);
}

.about-section .about-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.about-section .about-card:hover {
  border-color: rgba(212,175,106,0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.about-section .about-photo-wrap {
  border-color: rgba(212,175,106,0.4);
}

.about-section .about-linkedin {
  color: rgba(255,255,255,0.7);
}

.about-section .about-card:hover .about-linkedin {
  color: #D4AF6A;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.about-card:hover {
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27,34,64,0.08);
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201,168,76,0.3);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.about-info .about-socials {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 0.8rem;
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-title {
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  font-family: 'Georgia', 'Lora', serif;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.about-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a66c2;
  transition: opacity var(--transition);
}

.about-card:hover .about-linkedin { opacity: 0.8; }

/* Nav-logo as link */
a.nav-logo {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Combined chart */
.combined-chart-wrap {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
}

.combined-chart {
  width: 100% !important;
  height: 220px !important;
  display: block;
}

.combined-chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.legend-standard .legend-dot { background: rgba(27,34,64,0.4); }
.legend-empower  .legend-dot { background: var(--accent); }

@media (max-width: 700px) {
  .about-cards { grid-template-columns: 1fr; }
  .about-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .about-photo-wrap { width: 100px; height: 100px; }
  .about-info { width: 100%; }
  .about-info .about-socials { justify-content: center; }
  .combined-chart { height: 180px !important; }
}

@media (max-width: 480px) {
  .about-name { font-size: clamp(1rem, 4vw, 1.1rem); }
  .about-role-inline { font-size: clamp(0.65rem, 2.5vw, 0.78rem); }
  .about-title { font-size: clamp(0.65rem, 2.5vw, 0.75rem); }
  .about-spec { font-size: clamp(0.72rem, 2.5vw, 0.82rem); }
}

/* =====================
   HERO TWO-COLUMN LAYOUT
   ===================== */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Left column — fill full height and justify content vertically */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Quiz panel on the right inside hero */
.hero-quiz-panel {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 24px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(27,34,64,0.08);
  align-self: center;
}

.hero-quiz-panel .quiz-header {
  margin-bottom: 0.8rem;
}

.hero-quiz-panel .section-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 0.3rem;
}

.hero-quiz-panel .section-desc {
  font-size: 0.82rem;
}

.hero-quiz-panel .quiz-card {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-quiz-panel .quiz-question {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  min-height: unset;
  margin-bottom: 0.8rem;
}

.hero-quiz-panel .quiz-answers {
  gap: 0.5rem;
}

.hero-quiz-panel .quiz-btn {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

/* Hide old stats bar */
.stats-bar { display: none !important; }

/* Mobile */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
  }
}

/* =====================
   CALCULATOR
   ===================== */
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calc-field { display: flex; flex-direction: column; gap: 0.5rem; }

.calc-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.calc-input-wrap:focus-within { border-color: var(--accent); }

.calc-prefix, .calc-suffix {
  padding: 0 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(27,34,64,0.04);
}

.calc-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.7rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  width: 100%;
}

.calc-toggle-group {
  display: flex;
  gap: 0.4rem;
}

.calc-toggle {
  flex: 1;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.calc-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b2240;
}
.calc-toggle:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.calc-run-btn {
  padding: 0.75rem 1.8rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.calc-run-btn:hover {
  background: var(--accent);
  color: #1b2240;
  transform: translateY(-2px);
}

/* Result cards */
.calc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-card {
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.calc-card--emp {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.03);
}

.calc-card-badge {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(27,34,64,0.04);
}
.calc-card-badge--emp {
  color: var(--accent);
  background: rgba(201,168,76,0.08);
}

.calc-card-tags {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1.5rem 0.8rem;
  background: rgba(27,34,64,0.04);
}
.calc-card--emp .calc-card-tags { background: rgba(201,168,76,0.06); }

.calc-rows {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.calc-row-label { color: var(--text-muted); }

.calc-row-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-align: right;
}
.calc-row-val--good { color: var(--accent); }
.calc-row-val--bad  { color: #c0392b; }

.calc-total {
  margin: 0 1.5rem 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(27,34,64,0.05);
  border: 1px solid rgba(27,34,64,0.08);
}
.calc-total--emp {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.25);
}

.calc-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.calc-total-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.calc-total--emp .calc-total-val { color: var(--accent); }

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .calc-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .calc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .calc-inputs { grid-template-columns: 1fr; }
}

/* =====================
   CALCULATOR UPDATES
   ===================== */

/* Top disclaimer */
.calc-disclaimer-top {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.8rem;
  opacity: 0.8;
  font-style: italic;
}

/* Amortization slider inside inputs */
.calc-amort-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-amort-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-amort-val {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem !important;
}

.calc-amort-slider {
  width: 100%;
  margin: 0;
}

/* Inputs grid — 5 columns now (added amort) */
.calc-inputs {
  grid-template-columns: 1fr 1fr 1fr 1fr auto !important;
}

/* Advantage banner */
.calc-advantage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.calc-adv-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-adv-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Collapsible card header */
.calc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.calc-card-header:hover { background: rgba(27,34,64,0.03); }
.calc-card--emp .calc-card-header:hover { background: rgba(201,168,76,0.05); }

.calc-card-chevron {
  color: var(--text-muted);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.calc-card-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.calc-card-summary strong { color: var(--text); }
.calc-card-summary--emp strong { color: var(--accent); }

/* Collapsible body */
.calc-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}

/* 15% toggle star highlight */
.calc-toggle[data-val="15"] {
  position: relative;
}

/* Responsive */
@media (max-width: 900px) {
  .calc-inputs {
    grid-template-columns: 1fr 1fr !important;
  }
  .calc-inputs .calc-run-btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 500px) {
  .calc-inputs { grid-template-columns: 1fr !important; }
  .calc-adv-val { font-size: 1.3rem; }
}

/* =====================
   FIXED PARAMS CALCULATOR
   ===================== */

/* Fixed parameters bar */
.calc-fixed-params {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 2rem;
  margin-bottom: 2rem;
}

.cfp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.8rem;
  gap: 0.2rem;
}

.cfp-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

.cfp-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cfp-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Rate selector */
.calc-rate-selector {
  text-align: center;
  margin-bottom: 2rem;
}

.crs-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.crs-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.crs-info-btn:hover {
  background: var(--accent);
  color: #1b2240;
}

.crs-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.crs-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.8rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 110px;
}

.crs-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.15);
}

.crs-btn.active {
  border-color: var(--accent);
  background: rgba(201,168,76,0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.2);
}

.crs-pct {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.crs-btn.active .crs-pct,
.crs-btn:hover .crs-pct { color: var(--accent); }

.crs-hint {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* Info popup */
.invest-info-popup {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(27,34,64,0.1);
  animation: fadeUp 0.3s ease;
}

.iip-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.iip-close:hover { color: var(--text); }

.iip-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.iip-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.iip-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(27,34,64,0.03);
  border: 1px solid var(--border);
}

.iip-item--highlight {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.25);
}

.iip-pct {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 50px;
}

.iip-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.iip-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.7;
  font-style: italic;
}

/* Strategy popup */
.strategy-popup {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1rem;
  box-shadow: 0 8px 30px rgba(27,34,64,0.1);
  animation: fadeUp 0.3s ease;
}

.strategy-popup p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.strategy-popup ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.strategy-popup ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.strategy-popup ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Legend buttons */
.combined-chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.legend-item:hover {
  background: rgba(27,34,64,0.06);
  color: var(--text);
}

.legend-info {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 0.2rem;
}

@media (max-width: 700px) {
  .calc-fixed-params { gap: 0.5rem; }
  .cfp-item { padding: 0 0.8rem; }
  .cfp-divider { display: none; }
  .crs-btn { min-width: 80px; padding: 0.8rem 1rem; }
  .crs-pct { font-size: 1.3rem; }
}

/* Comparison table toggle */
.compare-toggle-wrap {
  margin-top: 1.2rem;
  text-align: center;
}

.compare-toggle-btn {
  background: linear-gradient(135deg, rgba(184,146,42,0.1), rgba(212,175,106,0.15));
  border: 1.5px solid rgba(184,146,42,0.5);
  border-radius: 100px;
  padding: 0.65rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(184,146,42,0.15);
  letter-spacing: 0.01em;
}
.compare-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(184,146,42,0.18), rgba(212,175,106,0.25));
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(184,146,42,0.25);
  transform: translateY(-1px);
}

.compare-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  animation: fadeUp 0.3s ease;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th {
  background: rgba(27,34,64,0.06);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.compare-table td {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(27,34,64,0.02); }

.td-good { color: var(--accent) !important; font-weight: 600; }
.td-bad  { color: #c0392b !important; }

/* Legend items — non-button now */
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  padding: 0.3rem 0;
  background: none;
  border: none;
}

/* Rate description popup */
.rate-desc-popup {
  position: relative;
  background: rgba(201,168,76,0.08);
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 1rem 2.5rem 1rem 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.3s ease;
}

.rate-desc-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.rate-desc-popup .iip-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
}
.rate-desc-popup .iip-close:hover { color: var(--text); }

/* Remove old crs-info-btn if still present */
.crs-info-btn { display: none; }

/* =====================
   UPDATED ADVANTAGE BANNER
   ===================== */
.calc-advantage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(201,168,76,0.07);
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  max-width: 100%;
}

.calc-adv-line1 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0;
}

.calc-adv-line2 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.calc-adv-line2 span {
  color: var(--accent);
}

.calc-adv-line3 {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.calc-adv-line3 span {
  color: var(--accent);
  font-weight: 700;
}

/* Rate desc popup — match width of rate buttons */
.rate-desc-popup {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-sm);
  padding: 0.7rem 2.2rem 0.7rem 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  animation: fadeUp 0.25s ease;
}

.rate-desc-text {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* Advantages list */
.adv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
}

.adv-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.adv-item:nth-child(odd) {
  background: rgba(201,168,76,0.04);
}

.adv-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  margin-top: 1px;
}

.adv-content { flex: 1; }

.adv-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.adv-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Compare toggle button — updated label */
.compare-toggle-btn {
  font-size: 0.82rem;
}

/* =====================
   VISUAL POLISH
   ===================== */

/* 3D shadow on all cards/panels */
.calc-fixed-params,
.calc-rate-selector .crs-buttons,
.calc-advantage,
.hero-quiz-panel,
.quiz-card,
.compare-card,
.tl-card,
.about-card,
.combined-chart-wrap {
  box-shadow: 0 4px 16px rgba(27,34,64,0.08), 0 1px 4px rgba(27,34,64,0.05);
}

.calc-advantage {
  box-shadow: 0 4px 20px rgba(201,168,76,0.15), 0 1px 4px rgba(201,168,76,0.1);
}

/* Fix rate buttons — all equal size */
.crs-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.75rem;
}

.crs-btn {
  width: 100% !important;
  min-width: 0 !important;
  padding: 1rem 0.5rem !important;
  box-shadow: 0 2px 8px rgba(27,34,64,0.08);
}

.crs-btn.active {
  box-shadow: 0 4px 16px rgba(201,168,76,0.25) !important;
}

/* Debt-free line — bigger, bolder */
.calc-adv-line3 {
  font-family: var(--font-display) !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  letter-spacing: -0.01em;
}

.calc-adv-line3 span {
  color: var(--accent) !important;
  font-weight: 800 !important;
}

/* Remove rate desc popup display */
.rate-desc-popup { display: none !important; }

/* ── Rate button hint text — scales down on mobile ── */
.crs-hint {
  font-size: clamp(0.58rem, 1.2vw, 0.7rem) !important;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}

.crs-pct {
  font-size: clamp(1.1rem, 3vw, 1.6rem) !important;
}

/* Advantage banner — line2 "около" prefix */
.calc-adv-line2 {
  font-size: clamp(0.88rem, 1.8vw, 1.15rem) !important;
}

/* Debt-free line — bold gold ── */
.calc-adv-line3 {
  font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
  letter-spacing: -0.01em;
}

/* ── Legend dots — 3 colors ── */
.legend-dot--std { background: rgba(0,0,0,0.75) !important; }
.legend-dot--emp { background: #2e7d52 !important; }
.legend-dot--sm  { background: #c9a84c !important; }

/* ── Mobile: "Наши клиенты" no word-break, wrap whole word ── */
.crs-hint {
  word-break: normal !important;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Force "клиенты" to next line on 15% button specifically */
@media (max-width: 480px) {
  .crs-btn[data-rate="15"] .crs-hint {
    display: block;
    word-break: normal;
    white-space: normal;
  }
  .crs-hint {
    font-size: clamp(0.52rem, 1vw, 0.65rem) !important;
  }
  .combined-chart-legend {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }
}

/* crs-hint — natural wrap, no forced breaks, same as "Выше среднего" */
.crs-hint {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  hyphens: none !important;
}

/* Tax saving span in banner */
#calcTaxVal {
  color: #2e7d52;
  font-weight: 700;
}

/* Legend — compact on mobile, no huge gap */
.combined-chart-legend {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem 1.5rem !important;
  margin-top: 0.6rem !important;
  margin-bottom: 0.5rem !important;
}

@media (max-width: 600px) {
  .combined-chart-legend {
    gap: 0.5rem 1rem !important;
  }
  .legend-item {
    font-size: 0.75rem !important;
  }
}

/* =====================
   LANGUAGE BOOKING MODAL
   ===================== */
.lang-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,22,16,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lang-modal-overlay.active {
  display: flex;
}

.lang-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(26,22,16,0.25);
  animation: fadeUp 0.3s ease;
}

.lang-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.lang-modal-close:hover { background: rgba(0,0,0,0.06); }

.lang-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.lang-modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lang-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid rgba(184,146,42,0.2);
  border-radius: var(--radius-sm);
  background: #fafafa;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: all 0.2s;
}

.lang-opt:hover {
  border-color: var(--accent);
  background: rgba(184,146,42,0.05);
  transform: translateX(4px);
}

.lang-opt-flag { font-size: 1.4rem; }
.lang-opt-name { flex: 1; }

/* =====================
   ABOUT STATS BAR
   ===================== */
.about-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  background: rgba(59,124,184,0.85);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  gap: 0.3rem;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: #D4AF6A;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-stat-label {
  font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
}

.about-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .about-stat { padding: 0.5rem; }
  .about-stat-div { display: none; }
  .about-stat-num { font-size: 1.5rem; }
  .about-stat-label { font-size: 0.65rem; }
  .lang-modal { padding: 2rem 1.5rem; }
}


/* =====================
   FAQ SECTION
   ===================== */
.faq-section {
  padding: 3.5rem 2rem;
  background: #ffffff;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.3), transparent);
}

.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(27,34,64,0.06);
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
  background: var(--card-bg);
}
.faq-item:last-child { border-bottom: none; }

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.faq-toggle:hover { background: rgba(184,146,42,0.04); }

.faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  padding: 0 1.6rem;
}
.faq-item.open .faq-body {
  max-height: 600px;
  padding: 0 1.6rem 1.4rem;
}

.faq-body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #EEF4FA;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 500px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
  padding: 3.5rem 2rem;
  background: #E8F0F8;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.3), transparent);
}
.contact-container { max-width: 780px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 1.5rem; }
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(27,34,64,0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-step { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); font-size: 0.75rem; }
.contact-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.topic-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(27,34,64,0.03);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.topic-btn:hover { border-color: var(--accent); background: rgba(184,146,42,0.05); }
.topic-btn.active { border-color: var(--accent); background: rgba(184,146,42,0.08); }
.topic-icon { font-size: 1rem; flex-shrink: 0; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,146,42,0.12); }
.field-input::placeholder { color: var(--text-muted); }
.field-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,146,42,0.12); }
.field-textarea::placeholder { color: var(--text-muted); }
.contact-langs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.lang-select-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--card-border);
  border-radius: 100px;
  background: rgba(27,34,64,0.03);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-select-btn:hover { border-color: var(--accent); background: rgba(184,146,42,0.06); }
.lang-select-btn.active { border-color: var(--accent); background: rgba(184,146,42,0.1); font-weight: 700; }
.contact-submit { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.5rem; border-top: 1px solid var(--card-border); }
.contact-btn {
  background: var(--accent);
  color: #1A1610;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.contact-btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,146,42,0.3); }
.contact-note { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 700px) {
  .contact-topics { grid-template-columns: 1fr 1fr; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
  .contact-submit { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
@media (max-width: 480px) {
  .contact-topics { grid-template-columns: 1fr; }
  .contact-langs { flex-direction: column; }
}

/* Other topic field */
.contact-other-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeUp 0.25s ease;
}

/* Hero pillars */
.hero-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.hero-pillar strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-pillar-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* =====================
   LIBRARY / PODCAST SECTION
   ===================== */
.podcast-section {
  padding: 3.5rem 2rem;
  background: #FAF7F2;
  position: relative;
}
.podcast-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.3), transparent);
}
.podcast-container {
  max-width: 900px;
  margin: 0 auto;
}
.podcast-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Tabs */
.library-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.lib-tab {
  padding: 0.7rem 1.4rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lib-tab:hover { color: var(--text); }
.lib-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Panels */
.lib-panel { display: none; }
.lib-panel.active { display: block; animation: fadeUp 0.3s ease; }

/* ── PODCASTS ── */
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.podcast-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.podcast-card:hover {
  border-color: rgba(184,146,42,0.3);
  box-shadow: 0 4px 16px rgba(27,34,64,0.07);
}
.podcast-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(184,146,42,0.3);
  line-height: 1;
}
.podcast-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.podcast-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.podcast-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.podcast-coming {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}
.audio-player {
  width: 200px;
  height: 36px;
  accent-color: var(--accent);
}

/* Platforms */
.podcast-platforms {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.4rem;
  background: rgba(184,146,42,0.04);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: var(--radius-sm);
}
.platforms-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.platforms-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.platform-badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  background: rgba(27,34,64,0.05);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  color: var(--text-muted);
}

/* ── ARTICLES ── */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.article-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.article-card:hover { border-color: rgba(184,146,42,0.3); }
.article-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.article-content { flex: 1; }
.article-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.article-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.article-btn {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--card-border);
  border-radius: 100px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: not-allowed;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── BOOK ── */
.book-showcase {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.book-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #0d2d5e, #2A5F96);
  border-radius: 8px 14px 14px 8px;
  box-shadow: -4px 4px 0 rgba(0,0,0,0.15), 4px 8px 24px rgba(13,45,94,0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px,
    transparent 0, transparent 20px
  );
}
.book-cover-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
}
.book-cover-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.book-cover-author {
  font-size: 0.7rem;
  color: rgba(212,175,106,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.book-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.book-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.book-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.book-btn--primary {
  padding: 0.75rem 1.5rem;
  background: var(--card-border);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .podcast-card { grid-template-columns: 32px 1fr; }
  .podcast-player { grid-column: 1 / -1; }
  .book-showcase { grid-template-columns: 1fr; }
  .book-cover { max-width: 160px; }
  .audio-player { width: 100%; }
}

/* =====================
   PODCAST ACCORDION
   ===================== */
.pod-accordion {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(27,34,64,0.05);
}

.pod-item { border-bottom: 1px solid var(--card-border); }
.pod-item:last-child { border-bottom: none; }

.pod-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  background: var(--card-bg);
  transition: background 0.2s;
  user-select: none;
}
.pod-row:hover { background: rgba(184,146,42,0.04); }

.pod-index {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(184,146,42,0.4);
  line-height: 1;
  text-align: center;
}

.article-tag-inline {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent) !important;
  background: rgba(184,146,42,0.1);
  border: 1px solid rgba(184,146,42,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  width: fit-content;
  white-space: nowrap;
}

.pod-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.pod-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pod-chevron {
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pod-item.open .pod-chevron { transform: rotate(180deg); }

/* Body */
.pod-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: rgba(184,146,42,0.02);
  border-top: 0px solid transparent;
}
.pod-item.open .pod-body {
  max-height: 200px;
  border-top: 1px solid var(--card-border);
}

.pod-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 1rem 1.2rem 0.6rem;
}

.pod-player-wrap { padding: 0 1.2rem 1rem; }

.pod-coming {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 1rem;
  background: rgba(27,34,64,0.04);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
}

.audio-player {
  width: 100%;
  max-width: 440px;
  height: 40px;
  accent-color: var(--accent);
}

@media (max-width: 500px) {
  .pod-row { grid-template-columns: 32px 1fr auto; }
  .pod-duration { display: none; }
}

/* About social icons */
.about-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.about-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.2s;
}

.about-social-btn:hover {
  background: rgba(212,175,106,0.25);
  border-color: #D4AF6A;
  color: #D4AF6A;
  transform: translateY(-2px);
}

/* About role badges — outside cards */
.about-roles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.about-role-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,175,106,0.35);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.about-role-badge strong {
  color: #D4AF6A;
  font-weight: 700;
}

.role-icon { font-size: 0.9rem; flex-shrink: 0; }

/* Fix social icon color on dark bg */
.about-social-btn {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: rgba(255,255,255,0.85) !important;
}

.about-social-btn:hover {
  background: rgba(212,175,106,0.3) !important;
  border-color: #D4AF6A !important;
  color: #D4AF6A !important;
}

/* Inline role in about card */
.about-role-inline {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  margin-top: -0.2rem;
}

/* Nav contacts */
.nav-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.nav-phone,
.nav-email {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-phone { color: var(--accent); }
.nav-email { color: var(--accent); font-weight: 600; }

.nav-phone:hover,
.nav-email:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav-contacts { display: none; }
}

@media (max-width: 768px) {
  .nav-links.open .nav-phone-mobile {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    border-bottom: 1px solid rgba(27,34,64,0.06);
  }
}

/* Nav hover — золотистый вместо белого */
.nav-links a:hover,
.nav-dropdown-trigger:hover { color: var(--accent) !important; }

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(248,246,241,0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(27,34,64,0.12);
  padding: 0.4rem 0;
  min-width: 190px;
  z-index: 200;
}

/* Невидимый мост между триггером и меню */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: fadeUp 0.15s ease;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem !important;
  color: var(--text) !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(184,146,42,0.08);
  color: var(--accent) !important;
}

/* Mobile dropdown fixes */
@media (max-width: 768px) {
  .nav-dropdown { flex-direction: column; align-items: center; width: 100%; }

  .nav-dropdown-trigger {
    font-size: 0.95rem !important;
    color: var(--text) !important;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(27,34,64,0.06);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(184,146,42,0.04);
    width: 100%;
    padding: 0;
  }

  .nav-dropdown-menu a {
    text-align: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid rgba(27,34,64,0.04);
  }

  .nav-dropdown-menu::before { display: none; }
}

/* Modal agenda block */
.lang-modal-agenda {
  background: rgba(184,146,42,0.06);
  border: 1px solid rgba(184,146,42,0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.lang-agenda-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}

.lang-agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lang-agenda-list li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}

.lang-agenda-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Coming soon languages */
.lang-modal-coming {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* =====================
   ABOUT FAQ ACCORDION
   ===================== */
.about-faq {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.about-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-faq-item:last-child { border-bottom: none; }

.about-faq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  transition: background 0.2s;
  user-select: none;
  gap: 1rem;
}
.about-faq-row:hover { background: rgba(255,255,255,0.1); }

.about-faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.about-faq-chevron {
  color: #D4AF6A;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}
.about-faq-item.open .about-faq-chevron { transform: rotate(180deg); }

.about-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.04);
}
.about-faq-item.open .about-faq-body { max-height: 300px; }

.about-faq-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  padding: 1rem 1.4rem;
}

/* Footer compliance text */
.footer-compliance {
  font-size: 0.65rem;
  color: rgba(27,34,64,0.4);
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(27,34,64,0.08);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Footer coming soon languages */
.footer-coming {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* =====================
   LIBRARY COMING SOON
   ===================== */
.library-coming {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--card-bg);
  border: 1.5px dashed rgba(184,146,42,0.35);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(27,34,64,0.05);
}

.library-coming-icon {
  font-size: 3rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.library-coming-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.library-coming-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.library-coming-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
}

.library-coming-btn {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,146,42,0.3);
  padding-bottom: 1px;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}

.library-coming-btn:hover {
  border-color: var(--accent);
}

@media (max-width: 500px) {
  .library-coming { flex-direction: column; text-align: center; gap: 1rem; }
  .library-coming-btn { margin: 0 auto; }
}

/* =====================
   LANGUAGE SWITCHER
   ===================== */
.lang-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.lang-row-main {
  display: flex;
  gap: 2px;
  background: rgba(27,34,64,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}

.lang-switcher-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.lang-switcher-btn:hover { color: var(--text); }
.lang-switcher-btn.active {
  background: var(--accent);
  color: #1b2240;
}

.lang-row-sub {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switcher-sub {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-switcher-sub:hover { color: var(--accent); }
.lang-switcher-sub.active { color: var(--accent); font-weight: 700; }

.lang-sub-div {
  font-size: 0.55rem;
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 1000px) {
  .lang-switcher { display: none; }
}

/* Mobile lang switcher — only visible inside open mobile menu */
.lang-switcher-mobile {
  display: none;
}

@media (min-width: 901px) {
  .lang-switcher-mobile {
    display: none !important;
  }
}
.nav-links.open .lang-switcher-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 0 0.6rem;
  border-top: 1px solid rgba(27,34,64,0.06);
  margin-top: 4px;
  width: 100%;
}
.nav-links.open .lang-switcher-mobile .lang-row-sub {
  margin-left: 8px;
  gap: 6px;
}
.nav-links.open .lang-switcher-mobile .lang-switcher-sub {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
}

/* =====================
   FORM RESULT POPUP
   ===================== */
.form-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(27,34,64,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.form-popup {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(27,34,64,0.2);
  animation: popupIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.form-popup-icon { font-size: 2.8rem; margin-bottom: 1rem; }

.form-popup-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.7rem;
}

.form-popup-desc {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 1.5rem;
}

.form-popup-actions {
  display: flex; flex-direction: column;
  gap: 0.7rem; align-items: center;
}

.popup-btn-primary {
  display: inline-block;
  background: var(--accent); color: #1b2240;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  padding: 0.85rem 2rem; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
}
.popup-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.popup-btn-close {
  background: none; border: none;
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--text-muted); cursor: pointer;
  text-decoration: underline; padding: 0.3rem;
  transition: color 0.2s;
}
.popup-btn-close:hover { color: var(--text); }
