/* Cosmo Pravda Home blocks — neumorphism */
:root {
  --cp-grid-max: 1100px;
  --cp-grid-pad: 1.25rem;
}

.cp-section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--cp-grid-max);
  margin: 0 auto;
  padding: 2.5rem var(--cp-grid-pad);
}

.cp-section h2 {
  font-size: var(--cp-h2, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cp-section-desc {
  color: var(--cp-muted, #6b7280);
  font-size: var(--cp-text-sm, 0.875rem);
  line-height: var(--cp-leading, 1.6);
  margin: 0 0 1.5rem;
  max-width: 640px;
}

.cp-section-subtitle {
  margin: -0.35rem 0 0.65rem;
  font-size: var(--cp-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--cp-muted, #6b7280);
  letter-spacing: 0.01em;
}

.cp-subheading {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.25rem 0 0.75rem;
  color: var(--cp-text, #1f2937);
}

.cp-neu-raised {
  background: var(--cp-surface, #f5f7fa);
  border-radius: var(--cp-radius, 20px);
  box-shadow: var(--cp-shadow, 8px 8px 16px rgba(163, 177, 198, 0.45), -8px -8px 16px rgba(255, 255, 255, 0.9));
}

.cp-neu-inset {
  background: var(--cp-surface, #f5f7fa);
  border-radius: var(--cp-radius, 20px);
  box-shadow: var(--cp-shadow-in, inset 4px 4px 8px rgba(163, 177, 198, 0.35), inset -4px -4px 8px rgba(255, 255, 255, 0.9));
}

/* Hero */
.cp-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--cp-grid-max);
  margin: 0 auto;
  padding: 2.75rem var(--cp-grid-pad) 2rem;
}

.cp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.cp-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-height: 100%;
  padding: 0.25rem 0;
}

.cp-hero h1 {
  font-size: var(--cp-h1, clamp(1.75rem, 4vw, 2.375rem));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.cp-hero-lead {
  color: var(--cp-muted, #6b7280);
  font-size: var(--cp-text-sm, 0.875rem);
  line-height: var(--cp-leading, 1.6);
  margin: 0;
  max-width: 34em;
}

.cp-hero-lead-2 {
  max-width: 34em;
}

/* Hero gallery */
.cp-hero-gallery {
  padding: 0.85rem;
  overflow: hidden;
  position: relative;
}

.cp-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-surface, #f5f7fa);
}

.cp-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex;
  flex-direction: column;
}

.cp-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.cp-slide-img {
  width: 100%;
  height: 72%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.cp-slide-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem 0.85rem;
  margin: 0;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.92), var(--cp-surface, #f5f7fa));
}

.cp-slide-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cp-accent, #f59e0b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cp-slide-text {
  font-size: var(--cp-text-sm, 0.875rem);
  line-height: 1.45;
  color: var(--cp-muted, #6b7280);
}

.cp-slide-progress {
  height: 3px;
  margin: 0.65rem 0.25rem 0.35rem;
  background: rgba(163, 177, 198, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.cp-slide-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cp-accent, #f59e0b);
  border-radius: inherit;
  transition: width 0.1s linear;
}

.cp-slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.25rem 0.15rem;
}

.cp-slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(163, 177, 198, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.cp-slide-dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--cp-accent, #f59e0b);
}

.cp-slide-dot:hover {
  transform: scale(1.15);
  background: rgba(245, 158, 11, 0.65);
}

/* Analyzer */
.cp-analyzer-panel {
  padding: 0;
  overflow: visible;
}

.cp-catalog-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
}

.cp-catalog-header-label {
  font-size: var(--cp-text-xs, 0.8125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-muted);
}

.cp-product-catalog {
  width: 100%;
}

.cp-catalog-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.cp-group-tab {
  box-sizing: border-box;
  padding: 0.55rem 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: var(--cp-surface);
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.85);
  transition: color 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cp-group-tab:hover {
  color: var(--cp-text);
  border-color: rgba(148, 163, 184, 0.42);
}

.cp-group-tab.is-open {
  color: var(--cp-text);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 2px var(--cp-accent), var(--cp-shadow);
}

.cp-catalog-panel {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--cp-shadow-in);
  max-height: 220px;
  overflow-y: auto;
}

.cp-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.cp-selected-type {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cp-muted);
  text-align: center;
}

.cp-selected-type.is-set {
  color: var(--cp-text);
  font-weight: 600;
}

.cp-chip {
  width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: var(--cp-surface);
  color: var(--cp-muted);
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.85);
  transition: box-shadow 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-analyzer-panel .cp-label,
.cp-analyzer-panel .cp-inci-input,
.cp-analyzer-panel .cp-analyzer-actions,
.cp-analyzer-panel .cp-status {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.cp-analyzer-panel .cp-label {
  margin-top: 1rem;
}

.cp-analyzer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.cp-analyze-btn-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.cp-analyze-btn-wrap.is-locked .cp-btn-primary:disabled {
  pointer-events: none;
}

.cp-analyze-btn-wrap.is-locked {
  cursor: not-allowed;
}

.cp-analyze-tip {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 0.5rem);
  bottom: auto;
  transform: translateY(-4px);
  box-sizing: border-box;
  width: max-content;
  min-width: 11.5rem;
  max-width: min(300px, calc(100vw - 2.5rem));
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--cp-text, #1f2937);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.cp-analyze-tip::after {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: auto;
  bottom: 100%;
  margin-left: 0;
  border: 6px solid transparent;
  border-top-color: transparent;
  border-bottom-color: var(--cp-text, #1f2937);
}

.cp-analyze-btn-wrap.is-locked:hover .cp-analyze-tip,
.cp-analyze-btn-wrap.is-locked:focus-within .cp-analyze-tip,
.cp-analyze-btn-wrap.is-locked.is-tip-open .cp-analyze-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .cp-analyze-tip {
    left: 0;
    max-width: min(280px, calc(100vw - 2rem));
  }
}

.cp-btn-secondary {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--cp-pill);
  background: var(--cp-surface);
  color: var(--cp-muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--cp-shadow);
}

.cp-btn-secondary:hover {
  color: var(--cp-text);
}

.cp-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cp-analyzer-panel .cp-status {
  margin-bottom: 1rem;
  padding: 0 1.25rem 1rem;
  margin-left: 0;
  margin-right: 0;
}

.cp-inci-session,
.cp-inci-paywall {
  margin: 0 1.25rem 1rem;
}

.cp-inci-session {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--cp-muted);
  font-size: 0.88rem;
}

.cp-inci-session strong {
  color: var(--cp-accent);
}

.cp-inci-paywall {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--cp-shadow-in);
}

.cp-inci-paywall[hidden] {
  display: none !important;
}

.cp-inci-paywall h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.cp-inci-paywall p {
  margin: 0 0 0.75rem;
  color: var(--cp-muted);
  font-size: 0.9rem;
}

.cp-inci-pay-email {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.cp-inci-pay-input {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: var(--cp-surface);
  color: var(--cp-text);
  box-shadow: var(--cp-shadow-in);
}

.cp-inci-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.cp-inci-plan {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(254, 243, 199, 0.62));
  color: var(--cp-text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--cp-shadow);
}

.cp-inci-plan strong {
  font-size: 1.25rem;
  color: #b45309;
}

.cp-inci-plan span {
  font-size: 0.86rem;
  color: var(--cp-muted);
}

.cp-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b45309;
  cursor: pointer;
  font-weight: 700;
}

.cp-inci-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.cp-inci-code-row[hidden] {
  display: none !important;
}

.cp-inci-code-row .cp-inci-pay-input {
  margin-bottom: 0;
}

.cp-inci-pay-status {
  min-height: 1.2rem;
}

@media (max-width: 520px) {
  .cp-inci-plan-grid,
  .cp-inci-code-row {
    grid-template-columns: 1fr;
  }
}

.cp-chip:hover {
  color: var(--cp-text);
  border-color: rgba(148, 163, 184, 0.42);
}

.cp-chip.is-active {
  color: var(--cp-text);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 2px var(--cp-accent), var(--cp-shadow);
}

.cp-chip-custom {
  font-style: italic;
}

.cp-catalog-custom {
  display: none;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(163, 177, 198, 0.22);
}

.cp-catalog-custom.is-visible {
  display: block;
}

.cp-catalog-custom-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cp-muted);
}

.cp-catalog-custom-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: var(--cp-surface);
  color: var(--cp-text);
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: var(--cp-shadow-in);
}

.cp-catalog-custom-input:focus {
  outline: 2px solid rgba(245, 158, 11, 0.45);
  outline-offset: 1px;
  border-color: rgba(245, 158, 11, 0.45);
}

.cp-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cp-inci-input {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 1rem;
}

.cp-btn-primary {
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--cp-pill);
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--cp-shadow);
}

.cp-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cp-status {
  margin-top: 1rem;
  color: var(--cp-muted);
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.cp-recent-cards-desc {
  margin-top: 0.25rem;
}

/* Recent analyses */
.cp-recent-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}

.cp-recent-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.cp-recent-counter {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cp-muted);
}

.cp-recent-counter strong {
  color: var(--cp-accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.cp-analyze-progress {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(163, 177, 198, 0.22);
}

.cp-analyze-progress[hidden] {
  display: none !important;
}

.cp-loader-scene {
  width: 100%;
}

.cp-loader-track {
  position: relative;
  width: 100%;
  height: 58px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(232, 236, 241, 0.5) 100%);
}

.cp-loader-track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(163, 177, 198, 0.35);
  border-radius: 2px 2px 0 0;
}

.cp-loader-obstacle {
  position: absolute;
  bottom: 3px;
  z-index: 1;
  transform: translateX(-50%);
}

/* Пробирки — перепрыгнуть */
.cp-obstacle-tubes {
  width: 34px;
  height: 22px;
  bottom: 3px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 2px;
  box-shadow: 0 2px 0 #64748b;
}

.cp-obstacle-tubes::before,
.cp-obstacle-tubes::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 7px;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.9), rgba(56, 189, 248, 0.55));
  border: 1px solid #7dd3fc;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.5);
}

.cp-obstacle-tubes::before {
  left: 5px;
  height: 14px;
}

.cp-obstacle-tubes::after {
  right: 5px;
  height: 20px;
}

/* Котёл */
.cp-obstacle-kettle {
  width: 30px;
  height: 16px;
  bottom: 3px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #94a3b8, #475569);
  box-shadow: inset 0 -3px 0 #334155, 2px 2px 4px rgba(71, 85, 105, 0.4);
}

.cp-obstacle-kettle::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 22px;
  height: 8px;
  margin-left: -11px;
  border-radius: 4px 4px 0 0;
  background: #64748b;
  border: 1px solid #475569;
}

.cp-obstacle-kettle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: -6px;
  width: 8px;
  height: 5px;
  border-radius: 0 4px 4px 0;
  border: 2px solid #64748b;
  border-left: none;
}

.cp-obstacle-kettle-2 {
  transform: translateX(-50%) scale(0.9);
}

/* Трубы сверху — пролезть */
.cp-obstacle-pipe {
  width: 44px;
  height: 10px;
  bottom: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 3px 0 #475569;
}

.cp-obstacle-pipe::before,
.cp-obstacle-pipe::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 6px;
  height: 14px;
  background: linear-gradient(90deg, #64748b, #94a3b8);
  border-radius: 2px;
}

.cp-obstacle-pipe::before {
  left: 2px;
}

.cp-obstacle-pipe::after {
  right: 2px;
}

/* Колба */
.cp-obstacle-flask {
  width: 18px;
  height: 20px;
  bottom: 3px;
}

.cp-obstacle-flask::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 14px;
  height: 12px;
  margin-left: -7px;
  background: linear-gradient(180deg, rgba(167, 243, 208, 0.7), rgba(16, 185, 129, 0.45));
  border: 1px solid #6ee7b7;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35);
}

.cp-obstacle-flask::after {
  content: '';
  position: absolute;
  bottom: 11px;
  left: 50%;
  width: 6px;
  height: 10px;
  margin-left: -3px;
  background: rgba(167, 243, 208, 0.5);
  border: 1px solid #6ee7b7;
  border-radius: 2px 2px 0 0;
}

.cp-fallen-paper {
  position: absolute;
  bottom: 4px;
  width: 9px;
  height: 11px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 1px;
  box-shadow: 1px 1px 2px rgba(100, 116, 139, 0.25);
  transform: translateX(-50%) rotate(-12deg);
  opacity: 0;
  z-index: 0;
}

.cp-fp-1 { animation: cp-paper-drop 5.8s linear infinite; animation-delay: 0s; }
.cp-fp-2 { animation: cp-paper-drop 5.8s linear infinite; animation-delay: -1.15s; }
.cp-fp-3 { animation: cp-paper-drop 5.8s linear infinite; animation-delay: -2.35s; }
.cp-fp-4 { animation: cp-paper-drop 5.8s linear infinite; animation-delay: -3.45s; }
.cp-fp-5 { animation: cp-paper-drop 5.8s linear infinite; animation-delay: -4.55s; }

@keyframes cp-paper-drop {
  0%, 12% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) rotate(-25deg) scale(0.5);
  }
  14%, 88% {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0) rotate(-12deg) scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) rotate(-12deg);
  }
}

.cp-loader-tech {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 22px;
  height: 34px;
  z-index: 3;
  animation: cp-tech-journey 5.8s linear infinite;
  will-change: left, transform;
}

.cp-tech-papers {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 16px;
  height: 14px;
  z-index: 4;
}

.cp-tech-paper {
  position: absolute;
  width: 8px;
  height: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(100, 116, 139, 0.2);
}

.cp-tp-1 {
  left: 0;
  top: 0;
  animation: cp-tech-paper-fly 5.8s linear infinite;
  animation-delay: 0s;
}

.cp-tp-2 {
  left: 5px;
  top: 2px;
  animation: cp-tech-paper-fly 5.8s linear infinite;
  animation-delay: -1.9s;
}

.cp-tp-3 {
  left: 2px;
  top: 5px;
  animation: cp-tech-paper-fly 5.8s linear infinite;
  animation-delay: -3.8s;
}

@keyframes cp-tech-paper-fly {
  0%, 10% {
    opacity: 1;
    transform: translate(0, 0) rotate(-8deg);
  }
  12% {
    opacity: 0;
    transform: translate(-8px, 16px) rotate(-45deg) scale(0.45);
  }
  14%, 100% {
    opacity: 0;
    transform: translate(-8px, 16px) rotate(-45deg) scale(0.45);
  }
}

.cp-tech-head {
  position: absolute;
  top: 0;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fcd9b6;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.08);
}

.cp-tech-head::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 2px;
  width: 10px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #94a3b8;
}

.cp-tech-coat {
  position: absolute;
  top: 12px;
  left: 1px;
  width: 18px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: #f8fafc;
  box-shadow: inset 0 -2px 0 rgba(148, 163, 184, 0.35);
}

.cp-tech-leg {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 9px;
  background: #475569;
  border-radius: 2px;
  transform-origin: top center;
}

.cp-tech-leg-l {
  left: 4px;
  animation: cp-tech-leg-l 0.52s ease-in-out infinite;
}

.cp-tech-leg-r {
  right: 4px;
  animation: cp-tech-leg-r 0.52s ease-in-out infinite;
}

@keyframes cp-tech-leg-l {
  0%, 100% { transform: rotate(28deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes cp-tech-leg-r {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(28deg); }
}

@keyframes cp-tech-journey {
  0% {
    left: 1%;
    transform: translateY(0) scaleY(1);
  }
  8% {
    left: 9%;
    transform: translateY(0) scaleY(1);
  }
  10% {
    left: 11%;
    transform: translateY(-14px) scaleY(1);
  }
  13% {
    left: 14%;
    transform: translateY(0) scaleY(1);
  }
  22% {
    left: 24%;
    transform: translateY(0) scaleY(1);
  }
  24% {
    left: 26%;
    transform: translateY(-14px) scaleY(1);
  }
  27% {
    left: 30%;
    transform: translateY(0) scaleY(1);
  }
  38% {
    left: 40%;
    transform: translateY(0) scaleY(1);
  }
  40% {
    left: 43%;
    transform: translateY(8px) scaleY(0.7);
  }
  44% {
    left: 47%;
    transform: translateY(0) scaleY(1);
  }
  54% {
    left: 56%;
    transform: translateY(0) scaleY(1);
  }
  56% {
    left: 59%;
    transform: translateY(-14px) scaleY(1);
  }
  59% {
    left: 63%;
    transform: translateY(0) scaleY(1);
  }
  72% {
    left: 74%;
    transform: translateY(0) scaleY(1);
  }
  74% {
    left: 77%;
    transform: translateY(-14px) scaleY(1);
  }
  77% {
    left: 81%;
    transform: translateY(0) scaleY(1);
  }
  90% {
    left: 92%;
    transform: translateY(0) scaleY(1);
  }
  100% {
    left: 96%;
    transform: translateY(0) scaleY(1);
  }
}

@media (max-width: 720px) {
  .cp-loader-track {
    height: 52px;
  }

  .cp-loader-tech {
    animation-duration: 6.4s;
  }

  .cp-fp-1,
  .cp-fp-2,
  .cp-fp-3,
  .cp-fp-4,
  .cp-fp-5 {
    animation-duration: 6.4s;
  }

  .cp-tp-1,
  .cp-tp-2,
  .cp-tp-3 {
    animation-duration: 6.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-loader-tech {
    animation: none;
    left: 50%;
    transform: translateX(-50%);
  }

  .cp-tech-leg-l,
  .cp-tech-leg-r,
  .cp-fallen-paper,
  .cp-tech-paper {
    animation: none;
  }

  .cp-tech-papers {
    display: none;
  }
}

.cp-recent-strip {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--cp-radius);
}

.cp-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.cp-recent-list--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.cp-recent-item {
  margin: 0;
  min-width: 0;
}

.cp-recent-list--five .cp-recent-card {
  aspect-ratio: 2 / 3;
  min-height: 14rem;
  height: auto;
}

.cp-recent-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 10.2rem;
  text-align: left;
  padding: 0.55rem 0.6rem;
  border: none;
  border-radius: calc(var(--cp-radius) - 2px);
  background: var(--cp-surface);
  box-shadow: var(--cp-shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  gap: 0.3rem;
}

.cp-recent-card:hover,
.cp-recent-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--cp-shadow-hover, var(--cp-shadow, 8px 8px 16px rgba(163, 177, 198, 0.45), -8px -8px 16px rgba(255, 255, 255, 0.9)));
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

.cp-recent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
  width: 100%;
}

.cp-recent-card-head .cp-verdict-badge {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.cp-recent-date {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--cp-muted);
}

.cp-recent-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-recent-preview {
  margin: 0;
  flex: 1;
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--cp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-recent-score {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cp-accent);
}

.cp-recent-item--winner {
  position: relative;
  display: flex;
}

.cp-recent-card--winner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 14rem;
  height: auto;
  padding: 0.5rem;
  gap: 0.45rem;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(97, 33, 199, 0.35);
  background: linear-gradient(165deg, #ffffff 0%, #f3effa 55%, #ebe4f8 100%);
  box-shadow: var(--cp-shadow), 0 0 0 1px rgba(97, 33, 199, 0.12), 0 8px 20px rgba(81, 34, 159, 0.14);
  cursor: default;
}

.cp-recent-card-winner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.cp-recent-card-winner-main {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-height: 0;
}

.cp-recent-card--winner .cp-recent-card-head {
  margin-bottom: 0;
}

.cp-recent-card--winner:hover,
.cp-recent-card--winner:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-hover, var(--cp-shadow)), 0 0 0 1px rgba(97, 33, 199, 0.28), 0 12px 24px rgba(81, 34, 159, 0.2);
}

.cp-recent-winner-badge {
  display: block;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.22rem 0.4rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(125deg, #51229f, #702ff2);
  box-shadow: 0 2px 6px rgba(81, 34, 159, 0.3);
}

.cp-recent-card-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(81, 34, 159, 0.15);
  background: #fff;
  box-shadow: var(--cp-shadow-in);
}

.cp-recent-card--winner .cp-recent-card-thumb {
  width: 72%;
  max-width: 5.5rem;
  height: auto;
  aspect-ratio: 1 / 1;
}

.cp-recent-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-recent-score--winner {
  font-size: 0.82rem;
  color: #51229f;
}

.cp-recent-more-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 1.65rem;
  padding: 0.3rem 0.4rem;
  border-radius: calc(var(--cp-radius) - 4px);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #111;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cp-recent-card--winner .cp-recent-preview {
  -webkit-line-clamp: 3;
  flex: 1 1 auto;
}

.cp-recent-more-btn:hover,
.cp-recent-more-btn:focus-visible {
  background: #2d2d2d;
  transform: translateY(-1px);
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

.cp-recent-list--five .cp-recent-type {
  font-size: 0.72rem;
}

.cp-recent-list--five .cp-recent-preview {
  font-size: 0.68rem;
  -webkit-line-clamp: 4;
}

.cp-recent-list--five .cp-recent-card .cp-recent-preview {
  flex: 1 1 auto;
}

.cp-recent-list--five .cp-recent-card-head .cp-verdict-badge {
  font-size: 0.64rem;
  max-width: 58%;
}

.cp-recent-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--cp-muted);
}

@media (max-width: 1100px) {
  .cp-recent-list--five {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
  }
}

.cp-recent-carousel {
  position: relative;
}

.cp-recent-nav {
  display: none;
}

.cp-recent-scroll-hint {
  display: none;
}

@media (max-width: 720px) {
  .cp-recent-strip {
    padding: 0.65rem 0 0.5rem;
  }

  .cp-recent-carousel {
    margin: 0 -0.25rem;
  }

  .cp-recent-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--cp-text);
    background: var(--cp-surface);
    box-shadow: var(--cp-shadow);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .cp-recent-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }

  .cp-recent-nav--prev {
    left: 0.15rem;
  }

  .cp-recent-nav--next {
    right: 0.15rem;
  }

  .cp-recent-scroll-hint {
    display: block;
    margin: 0.55rem 0 0;
    padding: 0 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--cp-muted);
  }

  .cp-recent-list,
  .cp-recent-list--five {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    gap: 0.75rem;
    padding: 0.35rem 2.75rem 0.85rem;
    margin: 0;
    scrollbar-width: none;
  }

  .cp-recent-list::-webkit-scrollbar {
    display: none;
  }

  .cp-recent-item,
  .cp-recent-item--winner {
    flex: 0 0 clamp(15rem, 78vw, 17.5rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .cp-recent-list--five .cp-recent-card,
  .cp-recent-list--five .cp-recent-card--winner {
    aspect-ratio: 3 / 4;
    min-height: 17rem;
    padding: 0.7rem 0.75rem;
    gap: 0.4rem;
  }

  .cp-recent-list--five .cp-recent-type {
    font-size: 0.86rem;
  }

  .cp-recent-list--five .cp-recent-preview {
    font-size: 0.8rem;
    line-height: 1.4;
    -webkit-line-clamp: 4;
  }

  .cp-recent-list--five .cp-recent-card-head .cp-verdict-badge {
    font-size: 0.72rem;
    max-width: 62%;
    padding: 0.28rem 0.55rem;
  }

  .cp-recent-score,
  .cp-recent-score--winner {
    font-size: 0.82rem;
  }

  .cp-recent-winner-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.5rem;
  }

  .cp-recent-card--winner .cp-recent-card-thumb {
    max-width: 6.5rem;
    width: 68%;
  }

  .cp-recent-more-btn {
    min-height: 2.1rem;
    font-size: 0.72rem;
    padding: 0.4rem 0.55rem;
  }

  .cp-recent-date {
    font-size: 0.76rem;
  }
}

/* Report */
.cp-report {
  margin-top: 2rem;
  padding: 1.5rem;
}

.cp-report-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cp-verdict-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--cp-pill);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--cp-surface);
  box-shadow: var(--cp-shadow);
}

.cp-verdict-badge.marketing { color: var(--cp-muted); }
.cp-verdict-badge.balanced { color: #2563eb; }
.cp-verdict-badge.powerful { color: var(--cp-accent); }

.cp-power-gauge {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cp-power-track-wrap {
  flex: 1;
  min-width: 0;
}

.cp-power-track {
  position: relative;
  height: 12px;
  border-radius: var(--cp-pill);
  background: var(--cp-bg);
  box-shadow: var(--cp-shadow-in);
  overflow: visible;
}

.cp-power-fill {
  height: 100%;
  border-radius: var(--cp-pill);
  background: linear-gradient(90deg, var(--cp-good), var(--cp-accent));
  transition: width 0.6s ease;
  position: relative;
  z-index: 1;
}

.cp-power-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: rgba(30, 41, 59, 0.45);
  border-radius: 1px;
  z-index: 2;
  pointer-events: none;
}

.cp-power-marker-labels {
  position: relative;
  height: 2.35rem;
  margin-top: 0.4rem;
}

.cp-power-marker {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  max-width: 5.5rem;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
}

.cp-power-marker-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cp-text);
}

.cp-power-marker-text {
  font-size: 0.65rem;
  color: var(--cp-muted);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .cp-power-gauge {
    flex-direction: column;
    align-items: stretch;
  }

  #cp-power-score {
    font-size: 0.88rem;
  }

  .cp-power-marker {
    max-width: 4.25rem;
  }

  .cp-power-marker-text {
    font-size: 0.6rem;
    white-space: normal;
  }
}

.cp-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.cp-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cp-scale-item {
  flex: 1 1 120px;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--cp-bg);
  box-shadow: var(--cp-shadow-in);
  font-size: 0.75rem;
  text-align: center;
}

.cp-scale-item strong { display: block; font-size: 1rem; color: var(--cp-text); }

.cp-good-bad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cp-good-col h4 { color: var(--cp-good); margin: 0 0 0.5rem; }
.cp-bad-col h4 { color: var(--cp-bad); margin: 0 0 0.5rem; }

.cp-good-col li, .cp-bad-col li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  list-style: none;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--cp-bg);
}

.cp-collapse {
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--cp-bg);
  box-shadow: var(--cp-shadow-in);
}

.cp-collapse-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

.cp-collapse-summary::-webkit-details-marker {
  display: none;
}

.cp-collapse-summary::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--cp-muted);
  border-bottom: 2px solid var(--cp-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 0.15rem;
}

.cp-collapse[open] .cp-collapse-summary::before {
  transform: rotate(45deg);
}

.cp-collapse-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cp-muted);
}

.cp-collapse-body {
  padding: 0 1rem 1rem;
}

.cp-ingredients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cp-ingredients-table th,
.cp-ingredients-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Ingredient grid */
.cp-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cp-ingredient-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: -0.5rem 0 1.25rem;
  font-size: var(--cp-text-xs, 0.8125rem);
}

.cp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--cp-pill);
}

.cp-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cp-legend-good {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.cp-legend-good::before {
  background: var(--cp-good, #10b981);
}

.cp-legend-attention {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.cp-legend-attention::before {
  background: var(--cp-bad, #ef4444);
}

.cp-ingredient-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--cp-radius, 20px);
  background: var(--cp-surface);
  box-shadow: var(--cp-shadow);
  cursor: pointer;
  border: 2px solid transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.cp-ingredient-card.cp-card-good {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--cp-surface) 55%);
}

.cp-ingredient-card.cp-card-attention {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), var(--cp-surface) 55%);
}

.cp-ingredient-card.cp-card-neutral {
  border-color: rgba(163, 177, 198, 0.35);
}

.cp-ingredient-card:hover,
.cp-ingredient-card.is-active {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35), var(--cp-shadow);
}

.cp-card-body {
  flex: 1;
  min-width: 0;
}

.cp-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cp-ingredient-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.cp-card-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.cp-card-badge--good {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.cp-card-badge--attention {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.cp-ingredient-card .cp-card-body > p:first-of-type {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--cp-text, #1f2937);
  line-height: 1.4;
}

.cp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-size: 0.72rem;
  color: var(--cp-muted);
}

.cp-ingredient-card .cp-plus {
  font-size: 1.25rem;
  color: var(--cp-accent);
  flex-shrink: 0;
}

.cp-empty-hint {
  color: var(--cp-muted);
  grid-column: 1 / -1;
}

/* Modal */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cp-modal[hidden] { display: none; }

.cp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.4);
}

.cp-modal-content {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.cp-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--cp-muted);
}

.cp-modal-body h3 { margin-top: 0; }
.cp-modal-body p { line-height: 1.6; }

/* FAQ */
.cp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cp-faq-item {
  margin-bottom: 0;
  padding: 1rem 1.25rem;
}

.cp-faq-item summary {
  font-size: var(--cp-text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.cp-faq-item p {
  margin: 0.75rem 0 0;
  font-size: var(--cp-text-sm, 0.875rem);
  color: var(--cp-muted);
  line-height: var(--cp-leading, 1.6);
}

@media (max-width: 768px) {
  .cp-hero {
    padding-top: 2rem;
  }

  .cp-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cp-hero-text {
    min-height: 0;
    padding: 0;
  }

  .cp-hero-gallery {
    padding: 0.65rem;
  }

  .cp-slide-caption {
    padding: 0.65rem 0.75rem;
  }

  .cp-slide-step {
    font-size: 0.75rem;
  }
  .cp-good-bad { grid-template-columns: 1fr; }
  .cp-catalog-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cp-analyzer-actions {
    flex-direction: column;
  }
  .cp-analyzer-actions .cp-btn-primary,
  .cp-analyzer-actions .cp-btn-secondary {
    width: 100%;
  }
}

/* Map.cosmo-sostav promo */
.cp-map-promo {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.cp-map-promo-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(245, 158, 11, 0.14);
  background: linear-gradient(145deg, #f8fafc 0%, var(--cp-surface, #f5f7fa) 55%, #f3f6fa 100%);
}

.cp-map-promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.cp-map-promo-eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--cp-text-xs, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-accent, #f59e0b);
}

.cp-map-promo-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cp-text, #1f2937);
}

.cp-map-promo-lead {
  margin: 0 0 1.25rem;
  max-width: 38em;
  font-size: var(--cp-text-sm, 0.875rem);
  line-height: var(--cp-leading, 1.6);
  color: var(--cp-muted, #6b7280);
}

.cp-map-promo-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cp-map-promo-benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--cp-text-sm, 0.875rem);
  line-height: 1.5;
  color: var(--cp-text, #1f2937);
}

.cp-map-promo-benefits strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.cp-map-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--cp-accent, #f59e0b);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--cp-shadow-in);
}

.cp-map-promo-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.cp-map-promo-visual {
  min-width: 0;
}

.cp-map-promo-infographic {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.cp-map-promo-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.35rem;
}

.cp-map-promo-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--cp-pill, 999px);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cp-muted, #6b7280);
}

.cp-map-promo-flow-step.is-accent {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.cp-map-promo-flow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cp-muted, #9ca3af);
}

.cp-map-promo-flow-step.is-accent .cp-map-promo-flow-dot {
  background: var(--cp-accent, #f59e0b);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.cp-map-promo-flow-arrow {
  color: var(--cp-muted, #9ca3af);
  font-size: 0.85rem;
}

.cp-map-promo-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cp-map-promo-period {
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.cp-map-promo-period--am {
  border-left: 3px solid #fbbf24;
}

.cp-map-promo-period--pm {
  border-left: 3px solid #6366f1;
}

.cp-map-promo-period-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-muted, #6b7280);
}

.cp-map-promo-period ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.cp-map-promo-period li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--cp-text, #1f2937);
}

.cp-map-promo-period li i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  flex-shrink: 0;
}

.cp-map-promo-period--pm li i {
  background: linear-gradient(145deg, #818cf8, #6366f1);
}

.cp-map-promo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.cp-map-promo-stat {
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.cp-map-promo-stat strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--cp-accent, #f59e0b);
}

.cp-map-promo-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--cp-muted, #6b7280);
  text-transform: lowercase;
}

.cp-map-promo-weeks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.cp-map-promo-week {
  text-align: center;
  padding: 0.45rem 0;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cp-muted, #6b7280);
  background: rgba(255, 255, 255, 0.35);
}

.cp-map-promo-week.is-active {
  color: #92400e;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.2));
  box-shadow: var(--cp-shadow-in);
}

@media (max-width: 900px) {
  .cp-map-promo-grid {
    grid-template-columns: 1fr;
  }

  .cp-map-promo-visual {
    order: -1;
  }
}

@media (max-width: 480px) {
  .cp-map-promo-btn {
    width: 100%;
  }

  .cp-map-promo-schedule {
    grid-template-columns: 1fr;
  }
}
