.ac-calculator-wrapper {
    padding: 0 20px;
    width: 100%;
}

.ac-calculator-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 24px;
}

.ac-calc-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    text-align: left;
}

.ac-calc-subtitle {
    color: #888; 
    font-size: 13px;
    margin: 0 0 20px;
}

/* ── Форма: две секции рядом ─────────────────────────────────── */
.ac-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.ac-calc-submit {
    grid-column: 1 / -1;
}

/* ── Секции ──────────────────────────────────────────────────── */
.ac-calc-section {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 16px;
}

.ac-calc-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* ── Поля ────────────────────────────────────────────────────── */
.ac-calc-field {
    margin-bottom: 10px;
}

.ac-calc-field:last-child {
    margin-bottom: 0;
}

.ac-calc-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.ac-calc-field input[type="number"],
.ac-calc-field select {
    width: 100%;
    padding: 7px 10px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ac-calc-field input[type="number"]:focus,
.ac-calc-field select:focus {
    outline: none;
    border-color: #3498db;
}

/* ── Чекбокс ─────────────────────────────────────────────────── */
.ac-calc-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #444;
}

.ac-calc-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    cursor: pointer;
    padding: 0;
    margin-top: 0;
    accent-color: #3498db;
}

/* ── Кнопка ──────────────────────────────────────────────────── */
.ac-calc-submit {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #3498db;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s;
    font-family: Verdana, Arial, sans-serif;
}

.ac-calc-submit:hover {
    background: #2980b9;
}

/* ── Результаты ──────────────────────────────────────────────── */
.ac-calc-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.ac-calc-power {
    background: #2c3e50;
    padding: 18px 24px;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ac-calc-power h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin: 0;
    white-space: nowrap;
}

.ac-power-values {
    display: flex;
    gap: 24px;
}

.ac-power-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ac-power-label {
    font-size: 13px;
    opacity: 0.7;
}

.ac-power-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.ac-power-unit {
    font-size: 13px;
    opacity: 0.7;
}

/* ── Товары ──────────────────────────────────────────────────── */
.ac-calc-products h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.ac-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.ac-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.ac-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.ac-product-image {
    width: 100%;
    height: 160px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ac-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-product-info {
    padding: 14px;
}

.ac-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ac-product-specs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ac-product-specs span {
    font-size: 12px;
    padding: 3px 8px;
    background: #eaf4fb;
    color: #3498db;
    border: 1px solid #d0e8f5;
}

.ac-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 12px;
}

.ac-product-button {
    display: block;
    width: 100%;
    padding: 9px;
    text-align: center;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.ac-product-button:hover {
    background: #2980b9;
}

.ac-no-products {
    text-align: center;
    padding: 32px;
    color: #888;
    font-size: 14px;
    border: 1px dashed #ddd;
}

/* ── Загрузка ────────────────────────────────────────────────── */
.ac-calc-loading {
    text-align: center;
    padding: 32px;
}

.ac-loader {
    border: 3px solid #f0f0f0;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: ac-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes ac-spin {
    to { transform: rotate(360deg); }
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ac-calc-form {
        grid-template-columns: 1fr;
    }

    .ac-calc-power {
        flex-direction: column;
        gap: 12px;
    }

    .ac-power-values {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ac-products-grid {
        grid-template-columns: 1fr;
    }
}