.calculator-block {
    margin: 16px 0 12px 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    min-height: 80px;
}

.calculator-badge {
    display: none;
}

.calculator-light-effect {
    display: none;
}

.calculator-content {
    margin-top: 0;
}

.calculator-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    min-height: 80px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.calculator-block:hover .calculator-inner {
    border-color: #ffed4e;
    box-shadow: 0 8px 24px -12px rgba(255, 237, 78, 0.45);
}

.calculator-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 6px;
}

.calculator-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.calculator-text {
    flex: 1;
    min-width: 0;
}

.calculator-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.calculator-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6b7280;
}

.calculator-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 30px;
    background: #f3f4f6;
}

.calculator-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.calculator-divider {
    font-size: 0.8rem;
    color: #6b7280;
}

.calculator-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.calculator-block:hover .calculator-arrow {
    background: #ffed4e;
    color: #111827;
    transform: translateX(2px);
}

.m-podbor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.m-podbor-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-podbor-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    min-height: 400px;
    overflow-y: auto;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: calculatorModalFadeIn 0.3s ease;
}

@keyframes calculatorModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.m-podbor-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-podbor-logo {
    border-radius: 8px;
    width: 32px;
    height: 32px;
}

.m-podbor-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.close-modal {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.close-modal:hover {
    background: #ffed4e;
    color: #111827;
}

.close-modal:focus-visible {
    outline: 2px solid #ffed4e;
    outline-offset: 2px;
}

.m-podbor-calculator {
    padding: 0 24px 24px;
}

.m-podbor-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 16px 0 20px;
    font-size: 0.9rem;
}

.m-podbor-type {
    display: flex;
    margin-bottom: 20px;
    background: #f9fafb;
    border-radius: 40px;
    padding: 4px;
}

.type-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 40px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
    user-select: none;
}

.type-option.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #111827;
}

.m-podbor-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
    color: #111827;
}

.form-group input:focus {
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 0 3px rgba(255, 237, 78, 0.25);
}

.form-error {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.3;
}

.m-podbor-button {
    width: 100%;
    min-height: 50px;
    background: #ffed4e;
    color: #111827;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-shadow: 0 4px 12px rgba(255, 237, 78, 0.25);
}

.m-podbor-button:hover {
    background: #e6d400;
}

.m-podbor-button:active {
    opacity: 0.9;
}

.m-podbor-button:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.m-podbor-result {
    background: #f9fafb;
    padding: 20px;
    border-radius: 16px;
    margin-top: 24px;
    display: none;
}

.result-title {
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: #111827;
    font-size: 1rem;
}

.recommendation-card {
    background: white;
    padding: 16px;
    min-height: 120px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #ffed4e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommendation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.recommendation-priority {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.recommendation-priority.ideal {
    background: #10b981;
}

.recommendation-priority.good {
    background: #3b82f6;
}

.recommendation-priority.growth {
    background: #f59e0b;
}

.recommendation-priority.warning {
    background: #ef4444;
}

.recommendation-priority.compact {
    background: #3b82f6;
}

.recommendation-priority.universal {
    background: #10b981;
}

.recommendation-priority.stable {
    background: #6366f1;
}

.recommendation-priority.borderline {
    background: #fff;
    color: #8a5a00;
    border: 1px solid #ffed4e;
    font-weight: 600;
}

.recommendation-size {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0;
    color: #111827;
}

.recommendation-range {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.recommendation-note {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 8px 0;
}

.result-link {
    display: inline-block;
    background: #ffed4e;
    color: #111827;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.15s ease;
}

.result-link:hover {
    background: #e6d400;
}

@media (max-width: 768px) {
    .calculator-inner {
        padding: 14px;
        gap: 14px;
    }

    .calculator-logo {
        width: 44px;
        height: 44px;
    }

    .calculator-title {
        font-size: 0.95rem;
    }

    .calculator-arrow {
        width: 32px;
        height: 32px;
    }

    .m-podbor-modal {
        padding: 12px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .m-podbor-calculator {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .calculator-inner {
        padding: 12px;
        gap: 12px;
    }

    .calculator-logo {
        width: 40px;
        height: 40px;
    }

    .calculator-title {
        font-size: 0.9rem;
    }

    .calculator-tags {
        gap: 6px;
    }

    .calculator-divider {
        display: none;
    }

    .calculator-arrow {
        width: 30px;
        height: 30px;
    }

    .m-podbor-type {
        flex-direction: column;
        gap: 4px;
        border-radius: 16px;
    }

    .type-option {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .calculator-inner,
    .calculator-arrow,
    .m-podbor-modal .modal-content,
    .m-podbor-button,
    .result-link,
    .close-modal,
    .type-option,
    .form-group input {
        transition: none;
        animation: none;
    }
}