/* ═══ МОДУЛЬ КАЛЬКУЛЯТОРОВ — стили под тему (переменные темы) ═══ */

/* Hero — компактный */
.calc-hero {
    position: relative;
    padding: calc(var(--header-h, 64px) + 20px) 0 20px;
    background: var(--bg-light, var(--bg-2, #14141A));
    border-bottom: 1px solid rgba(var(--text-rgb, 245,241,234), 0.08);
    overflow: hidden;
}
.calc-hero .container { position: relative; z-index: 1; }
.calc-hero .calc-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, #9CA3AF);
    margin-bottom: 10px;
}
.calc-hero .calc-breadcrumbs a { color: var(--text-muted, #9CA3AF); text-decoration: none; }
.calc-hero .calc-breadcrumbs a:hover { color: var(--primary, #D97706); }
.calc-hero .calc-breadcrumbs i { font-size: 9px; opacity: 0.5; }
.calc-hero-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.15;
    color: var(--text, #F5F1EA);
}
.calc-hero-sub {
    font-size: 14px;
    color: var(--text-muted, #9CA3AF);
    max-width: 720px;
    margin: 0;
    line-height: 1.5;
}

/* Секция */
.calc-section {
    position: relative;
    padding: 24px 0 40px;
    background: var(--bg, #0A0A0F);
}
.calc-section > .container { position: relative; z-index: 1; }

/* Хаб */
.calc-hub-section {
    position: relative;
    padding: 32px 0 60px;
    background: var(--bg, #0A0A0F);
}
.calc-hub-section > .container { position: relative; z-index: 1; }
.calc-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.calc-hub-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    background: var(--bg-light, var(--bg-2, #14141A));
    border: 1px solid rgba(var(--text-rgb, 245,241,234), 0.08);
    border-radius: var(--card-radius, 14px);
    text-decoration: none;
    color: var(--text, #F5F1EA);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.calc-hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary, #D97706);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.calc-hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb, 217,119,6), 0.4);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.calc-hub-card:hover::before { transform: scaleX(1); }
.calc-hub-card--soon { opacity: 0.55; cursor: default; }
.calc-hub-card--soon:hover { transform: none; border-color: rgba(var(--text-rgb, 245,241,234), 0.08); box-shadow: none; }
.calc-hub-card--soon:hover::before { transform: scaleX(0); }
.calc-hub-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb, 217,119,6), 0.12);
    color: var(--primary, #D97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    transition: all 0.3s;
}
.calc-hub-card:hover .calc-hub-icon {
    background: var(--primary, #D97706);
    color: #FFFFFF;
    transform: rotate(-6deg) scale(1.05);
}
.calc-hub-num {
    position: absolute;
    top: 14px; right: 16px;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(var(--primary-rgb, 217,119,6), 0.5);
}
.calc-hub-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--text, #F5F1EA);
    transition: color 0.25s;
}
.calc-hub-card:hover h3 { color: var(--primary-light, #F59E0B); }
.calc-hub-card p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #9CA3AF);
    margin: 0 0 14px;
    flex: 1;
}
.calc-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary, #D97706);
    margin-top: auto;
}
.calc-hub-link i { transition: transform 0.3s; font-size: 10px; }
.calc-hub-card:hover .calc-hub-link i { transform: translateX(3px); }
.calc-hub-link--soon { color: var(--text-muted, #9CA3AF); font-weight: 500; }

@media (max-width: 900px) {
    .calc-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
    .calc-hub-grid { grid-template-columns: 1fr; }
}