/* resources.css */
.ticker-wrapper {
  background: var(--c-text);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: -30px auto 0;
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 50;
  overflow: hidden;
}
.ticker-title {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-content { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-text {
  font-size: 0.9rem;
  animation: scrollLeft 40s linear infinite;
  display: inline-block;
}
.ticker-text:hover { animation-play-state: paused; }
@keyframes scrollLeft { 0% { transform: translateX(100%); } 100% { transform: translateX(-150%); } }

.calc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}
.calc-card {
  background: #fff; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--c-border); box-shadow: 0 2px 8px rgba(0,0,0,0.02); text-align: left;
}
.calc-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; color: var(--c-text); font-weight:700;}
.calc-desc { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: 24px; }
.calc-group { margin-bottom: 16px; }
.calc-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--c-text); }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-sm); font-size: 1rem; color: var(--c-text); background: var(--c-surface); outline: none; transition: border-color 0.2s; box-sizing:border-box;}
.form-input:focus { border-color: var(--c-accent); }
.calc-result-box {
  margin-top: 24px; padding: 20px; background: rgba(37,99,235,0.04); border: 1px solid rgba(37,99,235,0.15); border-radius: var(--r-md); text-align: center;
}
.calc-big-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--c-accent); margin-top: 4px; line-height: 1; }

.cal-wrapper { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--c-border); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); max-width: 800px; margin: 0 auto; text-align: left; }
.cal-header { display: flex; border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.cal-tab { flex: 1; padding: 20px; font-weight: 700; color: var(--c-text-muted); text-align: center; cursor: pointer; transition: all 0.2s; border-bottom: 3px solid transparent; background: none; border-top: none; border-left: none; border-right: none; font-size: 1rem; }
.cal-tab:hover { color: var(--c-text); }
.cal-tab.active { color: var(--c-accent); border-bottom-color: var(--c-accent); background: #fff; }
.cal-body { padding: 32px; }
.cal-content { display: none; }
.cal-content.active { display: block; animation: fadeIn 0.4s ease-out; }
.cal-item { display: flex; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.cal-item:last-child { border-bottom: none; padding-bottom: 0; }
.cal-date { flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--r-md); background: var(--c-surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--c-accent); border: 1px solid var(--c-border); }
