/* Catalog v3 — двухслойная архитектура (programs + lms_courses) */

.cv3-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ─── HERO ─── */
.cv3-hero {
  background: linear-gradient(135deg, #0c1c3a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.cv3-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.cv3-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cv3-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.85);
}
.cv3-search {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 24px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.cv3-search-input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 15px;
  outline: 0;
  background: transparent;
  color: #0f172a;
}
.cv3-search-btn {
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.cv3-search-btn:hover { background: #1d4ed8; }
.cv3-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.cv3-hero-stats strong { color: #fff; }

/* ─── SECTIONS ─── */
.cv3-section { padding: 56px 0; }
.cv3-section-grey { background: #f8fafc; }
.cv3-section-ai {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.cv3-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 24px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.cv3-section-sub { color: #64748b; margin: -12px 0 24px; }

/* ─── 4 ВИДА ОБУЧЕНИЯ ─── */
.cv3-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cv3-type-tile {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}
.cv3-type-tile:hover {
  transform: translateY(-2px);
  border-color: #1d4ed8;
  box-shadow: 0 12px 32px rgba(30,64,175,0.16);
}
.cv3-type-name { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.cv3-type-hours { color: #2563eb; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cv3-type-doc { color: #64748b; font-size: 13px; margin-bottom: 14px; }
.cv3-type-count { color: #1d4ed8; font-size: 13px; font-weight: 600; }

/* ─── CARDS ─── */
.cv3-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cv3-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
}
.cv3-card:hover { border-color: #1d4ed8; box-shadow: 0 8px 24px rgba(30,64,175,0.12); }
.cv3-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cv3-card-badge-seed { background: #fef3c7; color: #92400e; }
.cv3-card-frdo {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.cv3-card-type { font-size: 11px; color: #2563eb; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.cv3-card-title { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 6px; }
.cv3-card-direction { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.cv3-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #475569; margin-bottom: 12px; }
.cv3-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cv3-card-price { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.cv3-card-price-quote { color: #64748b; font-size: 13px; font-weight: 500; }
.cv3-card-cta { font-size: 13px; font-weight: 600; color: #1d4ed8; }

/* ─── DIRECTIONS GRID ─── */
.cv3-directions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.cv3-direction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  transition: all .15s ease;
}
.cv3-direction:hover { border-color: #1d4ed8; background: #eff6ff; }
.cv3-direction-empty { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.cv3-direction-count {
  background: #eef2ff;
  color: #1d4ed8;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ─── HOURS FILTER ─── */
.cv3-hours { display: flex; gap: 10px; flex-wrap: wrap; }
.cv3-hours-chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: all .15s ease;
}
.cv3-hours-chip:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }

/* ─── B2B CTA ─── */
.cv3-b2b { padding: 48px 0; }
.cv3-b2b-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
}
.cv3-b2b-card h2 { font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.cv3-b2b-card p { font-size: 16px; color: rgba(255,255,255,0.85); margin: 0 0 22px; }

/* ─── VERIFY ─── */
.cv3-verify-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cv3-verify-card h2 { font-size: 20px; margin: 0 0 8px; }
.cv3-verify-card p { color: #64748b; margin: 0 0 16px; }
.cv3-verify-form { display: flex; gap: 8px; }
.cv3-verify-form input {
  flex: 1; padding: 12px 14px; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 14px;
}

/* ─── BUTTONS ─── */
.cv3-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: all .15s ease;
}
.cv3-btn-lg { padding: 16px 32px; font-size: 16px; }
.cv3-btn-primary { background: #2563eb; color: #fff; }
.cv3-btn-primary:hover { background: #1d4ed8; }
.cv3-btn-secondary { background: #0f172a; color: #fff; }
.cv3-btn-secondary:hover { background: #334155; }

.cv3-link-arrow {
  color: #1d4ed8; text-decoration: none; font-weight: 600;
}

/* ─── PROGRAM PAGE ─── */
.cv3-program { padding-bottom: 60px; }
.cv3-prog-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 36px 0 32px;
  border-bottom: 1px solid #e2e8f0;
}
.cv3-breadcrumbs { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.cv3-breadcrumbs a { color: #1d4ed8; text-decoration: none; }
.cv3-prog-banner-seed {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
}
.cv3-prog-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.cv3-prog-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.cv3-prog-meta-item { display: flex; flex-direction: column; }
.cv3-prog-meta-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.cv3-prog-meta-val { font-size: 16px; font-weight: 700; color: #0f172a; }
.cv3-prog-meta-frdo .cv3-prog-meta-val { color: #16a34a; }
.cv3-prog-cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cv3-prog-price { font-size: 24px; font-weight: 800; color: #0f172a; }

.cv3-prog-block { margin-top: 40px; }
.cv3-prog-block h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: #0f172a; }
.cv3-prog-block-warn { background: #fef2f2; padding: 24px; border-radius: 12px; border-left: 4px solid #dc2626; }
.cv3-prog-block-warn h2 { color: #991b1b; }
.cv3-prog-list { padding-left: 22px; line-height: 1.7; color: #334155; }
.cv3-prog-list li { margin-bottom: 6px; }
.cv3-prog-list-regs li { font-size: 14px; }
.cv3-reg-date { color: #94a3b8; font-size: 12px; }
.cv3-penalty-amount { color: #991b1b; font-weight: 700; }

.cv3-doc-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 20px 24px; }
.cv3-doc-type { font-size: 18px; font-weight: 700; color: #166534; margin-bottom: 8px; }
.cv3-doc-license { font-size: 13px; color: #475569; margin-bottom: 8px; line-height: 1.6; }
.cv3-doc-frdo { font-size: 13px; color: #16a34a; font-weight: 600; }

.cv3-modules { border-top: 1px solid #e2e8f0; }
.cv3-module { border-bottom: 1px solid #e2e8f0; }
.cv3-module summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  cursor: pointer; user-select: none;
}
.cv3-module-num {
  background: #1d4ed8; color: #fff; width: 28px; height: 28px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.cv3-module-title { flex: 1; font-weight: 600; }
.cv3-module-cnt { color: #64748b; font-size: 12px; }
.cv3-module ul { padding: 0 4px 14px 56px; color: #475569; }
.cv3-module ul li { margin-bottom: 4px; }

.cv3-prog-steps { padding-left: 22px; line-height: 1.7; color: #334155; }
.cv3-prog-steps li { margin-bottom: 10px; }

.cv3-faq-item { border-bottom: 1px solid #e2e8f0; padding: 14px 0; }
.cv3-faq-item summary { font-weight: 600; cursor: pointer; padding: 4px 0; color: #0f172a; }
.cv3-faq-item p { margin: 8px 0 0; color: #475569; line-height: 1.6; }

/* ─── DIRECTION/CATALOG LIST PAGE ─── */
.cv3-dir-hero { background: #f8fafc; padding: 36px 0; border-bottom: 1px solid #e2e8f0; }
.cv3-dir-hero h1 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 8px; }
.cv3-dir-subtitle { color: #64748b; margin: 0 0 12px; }
.cv3-dir-count { color: #1d4ed8; font-weight: 600; font-size: 14px; }
.cv3-empty { color: #64748b; font-size: 16px; padding: 60px 20px; text-align: center; }

/* ─── ALPHABET ─── */
.cv3-alphabet-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; padding: 16px; background: #f8fafc; border-radius: 10px; }
.cv3-alphabet-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  text-decoration: none; color: #1d4ed8; font-weight: 700; font-size: 14px;
}
.cv3-alphabet-nav a:hover { background: #1d4ed8; color: #fff; }
.cv3-letter-head {
  font-size: 32px; font-weight: 800; color: #1d4ed8;
  margin: 32px 0 12px; padding: 8px 14px;
  background: #eff6ff; border-radius: 6px; display: inline-block;
}
.cv3-alphabet-list { list-style: none; padding: 0; margin: 0 0 24px; }
.cv3-alphabet-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
.cv3-alphabet-list li a { color: #0f172a; text-decoration: none; font-weight: 600; flex: 1; }
.cv3-alphabet-list li a:hover { color: #1d4ed8; }
.cv3-alphabet-hours { color: #64748b; font-size: 12px; }
.cv3-alphabet-dir { color: #94a3b8; font-size: 12px; }

@media (max-width: 640px) {
  .cv3-search { flex-direction: column; padding: 8px; }
  .cv3-search-btn { padding: 12px; }
  .cv3-prog-cta-row { flex-direction: column; align-items: stretch; }
  .cv3-prog-cta-row .cv3-btn { text-align: center; }
}
