/* === КАЛЬКУЛЯТОР ПРИВОДНЫХ РЕМНЕЙ — СТИЛИ === */
#belt-calculator-app,
#belt-calculator-app * {
    box-sizing: border-box;
}

#belt-calculator-app {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #231f20;
    background: transparent;
}

/* --- Основной двухколоночный контейнер --- */
#belt-calculator-app .belt-calc-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

#belt-calculator-app .belt-calc-left-col {
    flex: 1 1 45%;
    min-width: 320px;
}

#belt-calculator-app .belt-calc-right-col {
    flex: 1 1 55%;
    min-width: 320px;
}

/* --- Переключатель режимов (в левой колонке) --- */
#belt-calculator-app .belt-calc-mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
    width: 100%;
}

#belt-calculator-app .belt-mode-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #fcb713;
    background: #ffffff;
    color: #231f20;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

#belt-calculator-app .belt-mode-btn.active {
    background: #fcb713;
    color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(252, 183, 19, 0.3);
}

#belt-calculator-app .belt-mode-btn:hover:not(.active) {
    background: rgba(252, 183, 19, 0.1);
}

/* --- Картинка шкивов --- */
#belt-calculator-app .belt-pulley-image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 220px;
}

#belt-calculator-app .belt-pulley-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    background: #fff;
}

/* --- Блок информации о бренде (левый, статичный) --- */
#belt-calculator-app .belt-brand-info {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#belt-calculator-app .belt-brand-logo {
    text-align: left;
    margin-bottom: 2px;
}

#belt-calculator-app .belt-brand-text {
    font-size: 0.9em;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

#belt-calculator-app .belt-brand-link {
    margin-top: 2px;
    text-align: right;
}

#belt-calculator-app .belt-brand-link a {
    color: #1e1e1e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85em;
    transition: color 0.2s;
}

#belt-calculator-app .belt-brand-link a:hover {
    color: #fcb713;
    text-decoration: underline;
}

/* --- Формы (простая и промышленная) --- */
#belt-calculator-app .belt-calc-form {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

#belt-calculator-app .belt-calc-form:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

#belt-calculator-app h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5em;
    font-weight: 600;
    color: #1e1e1e;
    border-left: 4px solid #fcb713;
    padding-left: 18px;
}

/* --- Строки формы --- */
#belt-calculator-app .belt-calc-row {
    margin-bottom: 20px;
}

#belt-calculator-app .belt-calc-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95em;
}

#belt-calculator-app .belt-calc-row input[type="number"],
#belt-calculator-app .belt-calc-row input[type="text"],
#belt-calculator-app .belt-calc-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
    color: #231f20;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#belt-calculator-app .belt-calc-row input:focus,
#belt-calculator-app .belt-calc-row select:focus {
    border-color: #fcb713;
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 183, 19, 0.15);
    background-color: #ffffff;
}

#belt-calculator-app .belt-calc-row input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #fcb713;
}

#belt-calculator-app .belt-calc-row small {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 13px;
}

/* --- Кнопка --- */
#belt-calculator-app .belt-calc-button {
    background: #fcb713;
    color: #1e1e1e;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(252, 183, 19, 0.3);
    margin-top: 8px;
}

#belt-calculator-app .belt-calc-button:hover {
    background: #e5a700;
    box-shadow: 0 4px 10px rgba(252, 183, 19, 0.4);
}

#belt-calculator-app .belt-calc-button:active {
    transform: scale(0.98);
}

/* --- Блок результатов --- */
#belt-calculator-app .belt-calc-results {
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

#belt-calculator-app .belt-calc-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- Стилизованные результаты (новые) --- */
#belt-calculator-app .results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

#belt-calculator-app .result-item {
    flex: 1 1 calc(50% - 16px);
    min-width: 180px;
    display: flex;
    align-items: baseline;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

#belt-calculator-app .result-label {
    font-weight: 500;
    color: #475569;
    width: 150px;
    font-size: 0.95em;
}

#belt-calculator-app .result-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05em;
}

#belt-calculator-app .standard-belt-block {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(145deg, #fff7e6 0%, #fff0cc 100%);
    border-radius: 14px;
    border-left: 6px solid #fcb713;
    box-shadow: 0 4px 10px rgba(252, 183, 19, 0.1);
}

#belt-calculator-app .standard-belt-title {
    font-weight: 700;
    font-size: 1.15em;
    color: #7a5c00;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#belt-calculator-app .standard-belt-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

#belt-calculator-app .standard-belt-detail {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#belt-calculator-app .standard-belt-detail .label {
    font-weight: 500;
    color: #5a4a2e;
    font-size: 0.95em;
}

#belt-calculator-app .standard-belt-detail .value {
    font-weight: 700;
    color: #1e1e1e;
    background: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 1.05em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Сетка товаров --- */
#belt-calculator-app .belt-products-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #fcb713;
}

#belt-calculator-app .belt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 10px;
}

#belt-calculator-app .belt-product-card {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 14px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

#belt-calculator-app .belt-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    border-color: #fcb713;
    background: #ffffff;
}

#belt-calculator-app .belt-product-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1em;
    line-height: 1.4;
}

#belt-calculator-app .belt-product-title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s;
}

#belt-calculator-app .belt-product-title a:hover {
    color: #fcb713;
}

#belt-calculator-app .belt-product-sku {
    font-size: 0.8em;
    color: #64748b;
    margin-bottom: 10px;
    word-break: break-all;
}

#belt-calculator-app .belt-product-price {
    font-weight: 700;
    color: #0b3b5c;
    font-size: 1.1em;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

/* --- Ссылка в каталог --- */
#belt-calculator-app .belt-catalog-link {
    margin-top: 20px;
    text-align: right;
}

#belt-calculator-app .belt-catalog-link a {
    color: #fcb713;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

#belt-calculator-app .belt-catalog-link a:hover {
    gap: 10px;
    text-decoration: underline;
}

/* --- Предупреждения --- */
#belt-calculator-app .belt-warnings {
    margin: 20px 0 0;
}

#belt-calculator-app .belt-warning {
    background: #fff8e5;
    border-left: 5px solid #fcb713;
    color: #7a5c00;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 0.95em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#belt-calculator-app .belt-error {
    background: #fee;
    border-left-color: #e53e3e;
    color: #a71d2a;
}

/* --- Адаптивность --- */
@media (max-width: 900px) {
    #belt-calculator-app .belt-calc-main-wrapper {
        flex-direction: column;
    }
    #belt-calculator-app .belt-calc-left-col,
    #belt-calculator-app .belt-calc-right-col {
        width: 100%;
    }
}

@media (max-width: 680px) {
    #belt-calculator-app {
        margin: 15px;
    }
    #belt-calculator-app .belt-calc-mode-switch {
        width: 100%;
        justify-content: stretch;
    }
    #belt-calculator-app .belt-mode-label {
        flex: 1;
        justify-content: center;
    }
    #belt-calculator-app .belt-calc-form,
    #belt-calculator-app .belt-calc-results {
        padding: 20px 16px;
    }
    #belt-calculator-app .belt-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #belt-calculator-app .result-item {
        flex: 1 1 100%;
    }
    #belt-calculator-app .results-summary {
        padding: 16px;
    }
    #belt-calculator-app .standard-belt-details {
        flex-direction: column;
        gap: 12px;
    }
}

/* Убираем стандартные стрелки у number-полей */
#belt-calculator-app input[type=number]::-webkit-inner-spin-button,
#belt-calculator-app input[type=number]::-webkit-outer-spin-button {
    opacity: 0.5;
}